0

だから、私はiosアプリを持っていて、インターフェースビルダーとxcodeでそれを構築しました。水平ビューでインターフェイス ビルダーを使用してビルドしました。また、サポートされているビューを左右に横向きにし、info.plist を編集して横方向に開くようにしました。

しかし、ビルドして移動すると、iphone シミュレーターで水平に開きますが、垂直の場合と同じように表示されます。

ここにいくつかのスクリーンショットがあります: 私はそれをどのように見せたいですか: http://www.sendspace.com/file/4ct4b0

実際にどのように見えるか: http://www.sendspace.com/file/fayjqj

どうすれば好きなように開くことができますか??

4

1 に答える 1

1

You have to allow the orientation also in your implementation of UIViewController using shouldAutorotateToInterfaceOrientation :

- (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation {
         return YES; //or UIInterfaceOrientationIsLandscape(interfaceOrientation) for just landscape
 }

Also, if you have some more problems look on linked SO questions to this "out-dated" question: iPhone app in landscape mode, 2008 systems

于 2012-05-12T23:57:17.347 に答える