iOS 5のshouldAutorotateToInterfaceOrientationに関して、現時点で特定の問題があります。簡単に言うと、UIInterfaceOrientationMaskAllButUpsideDownを処理する必要がある画像ビューアを除いて、プロジェクト全体がPortraitのみを処理することになっています。
基本的に、私はこのコードをすべてのviewControllersに配置します:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation*)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
次に、PageViewControllerというViewControllerがあります。UIImapgePickercontrollerを呼び出すボタンがあります。そして、画像が選択されたら、ViewController(imagePicker)を閉じて、PageViewControllerに戻り、ImageViewControllerをプッシュします。
これは:
3
PageViewController-> ImageViewController
1 | A 2
V |
助けてくれてありがとう。
ImagePickerController