デフォルトでランドスケープモードでxcode3.2.6を使用してユニバーサルアプリを作成するにはどうすればよいですか?ビューごとに個別の.xibファイルが必要ですか?このコードを使用する必要がありますか?-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{//サポートされている場合はYESを返します方向が返されます(interfaceOrientation == UIInterfaceOrientationLandscape); }
2 に答える
0
私はこのサンプルコードを使用し、ビューベースにするために、
RootViewController_Phone.hとRootViewController_Pad BenellingsonPostself.navigationController.navigationBarHidden = YES;
でこのコードを使用して、ナビゲーションバーを非表示
にします
。
于 2012-03-22T04:38:22.620 に答える
0
plistでは、supported interface orientations
2つの項目に変更する必要があります。
アイテム0Landscape (right home button)
アイテム1Landscape (left home button)
そして、各ViewControllerで使用します。
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (UIInterfaceOrientationIsLandscape(interfaceOrientation));
}
于 2012-03-21T06:28:43.397 に答える