2011-08-24 75 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; 
}