0

奇妙な質問ですが、一部の UIViewController が向きをサポートしていない場合はどうなりますか? :)

// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return NO;
}

どの向きがサポートされますか? そのUIViewControllerの動作はどうなりますか?

4

2 に答える 2

1

デフォルトでは、向きを明示的に横向きに変更しない限り、向きは縦向きです。

于 2012-05-09T12:56:53.953 に答える
1

-shouldAutorotateToInterfaceOrientation:すべてのインターフェイスの向きに対してNO を返しました。少なくとも 1 つの向きをサポートする必要があります。

于 2012-05-09T12:57:24.647 に答える