0

xcode:4.5.2

iPad でアプリケーションを作成したい。

以下のように info.plist を設定します。

初期インターフェースの向き: 横 (左ホーム ボタン)

アプリを起動したとき、向きデバイスには横向きモードがありますが、ビューはこの向きに回転しません。

私はそれが何であるかわからない、誰が私を助けることができます

4

2 に答える 2

0

これらの次のメソッドを実装していますか。

 -(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;
    }
于 2012-11-27T10:31:01.930 に答える
0

iOS6では、この方法を使用する必要がありますvieworientation

-(BOOL)shouldAutorotate
{
    return YES;
}
-(NSUInteger)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskAll;
}

- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
    return UIInterfaceOrientationMaskAll;
}
于 2012-11-27T14:33:54.213 に答える