¿No se puede manejar la orientación en iOS 6?
estoy usando
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
delegar para cambiar el marco de mi vista en función del tipo de orientación
es decir.,
if(UIInterfaceOrientationIsLandscape(interfaceOrientation))
{
self.view.frame=CGRectMake(0,0,500,300);
}
else
{
self.view.frame=CGRectMake(0,0,300,400);
}
Cómo manejar la misma situación en iOS 6 que
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
ha sido desaprobado en iOS6.
Estoy usando el siguiente delegado para establecer todas las orientaciones.
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationAllMask;
}
Pero,
-(BOOL)shouldAutoRotate
{
return YES;
}
no está siendo invocado. ¿Cómo manejar esta situación?