Ios IPad ViewController pop动画样式从从右向左滑动更改为从下向上滑动
iPad中pop view控制器的动画意外地从右向左滑动变为仅在横向模式下从底部滑动。有什么问题吗Ios IPad ViewController pop动画样式从从右向左滑动更改为从下向上滑动,ios,ipad,Ios,Ipad,iPad中pop view控制器的动画意外地从右向左滑动变为仅在横向模式下从底部滑动。有什么问题吗 感谢您的帮助。我在支持横向和纵向时遇到了这种情况,但在ViewController支持的界面方向方法中,我返回了UIInterfaceOrientationMaskPortrait - (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskPortrait; } 这为我解决了这个问题: -
感谢您的帮助。我在支持横向和纵向时遇到了这种情况,但在ViewController支持的界面方向方法中,我返回了UIInterfaceOrientationMaskPortrait
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}
这为我解决了这个问题:
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}
需要查看一些代码来诊断问题。请粘贴您的popViewController代码。UIController应实施-boolshouldAutoRotatePointerFaceOrientation:uiInterfaceOrientationInterfaceOrientationAny ways@Peter Andersen此处也会询问解决方案中的相同问题,因此此问题已结束。谢谢大家。