2011-08-24 80 views
1

iPad中的弹出视图控制器的动画意外地从右滑动到左滑动以仅在横向模式下从下滑动。可能是什么问题呢 ?IPad ViewController弹出动画风格从右侧滑动到左侧滑动从下到上滑动

感谢您的帮助。

+0

需要看到一些代码来诊断问题。请粘贴您的popViewController代码 –

+0

固定。 UIController应该实现 - (BOOL)shouldAutorotateToInterfaceOrientation :(UIInterfaceOrientation)toInterfaceOrientation –

+0

谢谢任何​​方式@Peter Andersen –

回答

0

它发生在我身上时,我支持风景和肖像,但在viewcontrollers“supportedInterfaceOrientations”的方法,我返回“UIInterfaceOrientationMaskPortrait”

- (NSUInteger)supportedInterfaceOrientations { 
    return UIInterfaceOrientationMaskPortrait; 
} 

这个固定对我来说:

- (NSUInteger)supportedInterfaceOrientations { 
    return UIInterfaceOrientationMaskAll; 
}