Я хочу повернуть только один из моих представлений в моем приложении в альбомную ориентацию. Все остальные виды у меня в портретном режиме. Предыдущий вид в портретном режиме. Я переключил альбомный вид на портретный. Как я могу сделать это правильно?
в моем контроллере ландшафтного вида:
//Orientation
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{
return (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
// New Autorotation support
-(BOOL)shouldAutorotate {
return YES;
}
-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskLandscapeRight;
}