在我的apilicacion中,使用以下方法进行旋转:
- (NSUInteger) {supportedInterfaceOrientations
return UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight;
}但是当加载下一个视图时
View2 *Cambio =[[View2 alloc]initWithNibName:Nil bundle:Nil];
Cambio.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentViewController:Cambio animated:NO completion:^{/* done */}];但这会自动旋转到UIInterfaceOrientationMaskLandscapeRight to UIInterfaceOrientationMaskLandscapeLeft
有什么想法吗?
发布于 2012-11-29 04:48:25
也许你可以试试
-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationLandscapeRight;
}https://stackoverflow.com/questions/13612362
复制相似问题