-1

複数の ViewController を持つプログラムがあります。

ポートレート モードのみが必要な場合もあれば、ランドスケープモードのみが必要な場合もあります。

縦向きのviewControllerから来ると、システムは新しいviewControllerを自動的に横向きにする必要があります。

どうやってやるの?

4

1 に答える 1

0
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
    return UIInterfaceOrientationLandscapeLeft;
}

これは役立つかもしれません

http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/RespondingtoDeviceOrientationChanges/RespondingtoDeviceOrientationChanges.html

于 2013-03-15T16:32:41.250 に答える