Ipad iOS6上的UINavigationController后退按钮弹出视图动画
我没有在后退按钮上添加任何过渡动画 我的代码非常简单,如下所示Ipad iOS6上的UINavigationController后退按钮弹出视图动画,ipad,ios6,Ipad,Ios6,我没有在后退按钮上添加任何过渡动画 我的代码非常简单,如下所示 categorySubListViewController *categorySub =[[categorySubListViewController alloc] initWithNibName:@"categorySubListViewController" bundle:nil]; categorySub.detailViewController=self.detailViewController; [self.na
categorySubListViewController *categorySub =[[categorySubListViewController alloc] initWithNibName:@"categorySubListViewController" bundle:nil];
categorySub.detailViewController=self.detailViewController;
[self.navigationController pushViewController:categorySub animated:YES];
然而,popview控制器动画是错误的,它显示如下(从上到下动画)
它应该是从右到左的动画
我的代码或iOS 6有什么问题吗
在iPhone iOS 6和iPad iOS 6上运行良好。修复
问题是
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}
应该是
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}