xcode:4.5.2
iPad でアプリケーションを作成したい。
以下のように info.plist を設定します。
初期インターフェースの向き: 横 (左ホーム ボタン)
アプリを起動したとき、向きデバイスには横向きモードがありますが、ビューはこの向きに回転しません。
私はそれが何であるかわからない、誰が私を助けることができます
xcode:4.5.2
iPad でアプリケーションを作成したい。
以下のように info.plist を設定します。
初期インターフェースの向き: 横 (左ホーム ボタン)
アプリを起動したとき、向きデバイスには横向きモードがありますが、ビューはこの向きに回転しません。
私はそれが何であるかわからない、誰が私を助けることができます
これらの次のメソッドを実装していますか。
-(BOOL)shouldAutomaticallyForwardAppearanceMethods{
// This method is called to determine whether to
// automatically forward appearance-related containment
// callbacks to child view controllers.
return YES;
}
-(BOOL)shouldAutomaticallyForwardRotationMethods{
// This method is called to determine whether to
// automatically forward rotation-related containment
// callbacks to child view controllers.
return YES;
}
iOS6では、この方法を使用する必要がありますvieworientation
-(BOOL)shouldAutorotate
{
return YES;
}
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskAll;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationMaskAll;
}