Não é possível manipular a orientação no iOS 6?
estou usando
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
delegar para alterar o quadro da minha opinião com base no tipo de orientação
ou seja,
if(UIInterfaceOrientationIsLandscape(interfaceOrientation))
{
self.view.frame=CGRectMake(0,0,500,300);
}
else
{
self.view.frame=CGRectMake(0,0,300,400);
}
Como lidar com a mesma situação no iOS 6 como
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
foi descontinuado no iOS6.
Eu estou usando o seguinte delegado para definir todas as orientações.
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationAllMask;
}
Mas,
-(BOOL)shouldAutoRotate
{
return YES;
}
não está sendo chamado. Como lidar com essa situação?