そのため、My アプリで iPad のマスター/ディテール プロジェクトを実行しています。
UIBarButtonItem詳細にショープッシュビュー「アプリについて」を追加しました。
(から) 3 番目のビューを詳細にプッシュしUITableて戻るボタンを押すと、navigationControl のスタックの 2 番目のビューに戻り、ビューが縦向きになります!
すべてのviewControllersには次のコードがあります:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone)
return UIInterfaceOrientationIsPortrait(interfaceOrientation);
else
return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}
表示されるエラーは次のとおりです。
ビュー コントローラーは、すべてのインターフェイスの向きに対して -shouldAutorotateToInterfaceOrientation: から NO を返しました。少なくとも 1 つの向きをサポートする必要があります。
また、ストーリーボードから直接方向にランドスケープを設定しようとしましたUIViewが、どちらも機能しません。
手がかりはありますか?