0

私のアプリは風景のみを使用しています。.plist のサポートされているインターフェイスの向きで修正しました。

ただし、UIImagePickerController を使用する必要があり、ポートレート モードしかサポートしていません。特定のビューコントローラーでアプリの回転を縦向きにするにはどうすればよいですか?

どんなヒントもとても役に立ちます!タイ!

4

2 に答える 2

0

ColinE、以下のように設定すればいいということですか?

他のすべてのviewController

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{ 
    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight || UIInterfaceOrientationLandscapeLeft); 
}

ポータルページを設定します

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{ 
    return (interfaceOrientation == UIInterfaceOrientationPortrait); 
}
于 2013-02-28T09:08:03.073 に答える