常に縦長モードになっているメインのviewControllerがあります。
次に、ModalViewController を提示したいのですが、横向きでは (画面の下からではなく) 左から来ます。
出来ますか?
tnx
常に縦長モードになっているメインのviewControllerがあります。
次に、ModalViewController を提示したいのですが、横向きでは (画面の下からではなく) 左から来ます。
出来ますか?
tnx
モーダル ビュー コントローラーの実装で、オーバーライド-shouldAutorotateToInterfaceOrientation:
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
私もこの問題に遭遇しました。だから私はモーダルトランジションスタイルを使用したので、それは気まぐれに見えませんでした。
お役に立てれば。
viewController.modalTransitionStyle = *modaltransitionstyle*;
[self presentModalViewController:viewController animated:YES];