2

我有一个处于纵向模式的UIViewController内部。UInavigationController它的视图有一个UIButton当点击时呈现一个自定义UIImagePickerControllerView的视图(在同一个 nib 文件中)作为presentModalViewController. 我只希望 ViewController 以横向模式显示。

我试图实现返回 true 的shouldAutoroateToInterfaceOrientation方法UIInterfaceOrientationLandscapeLeft,但它会旋转父 ViewController,而不是 UIImagePickerController显示为presentModalViewController. 如何旋转在 ios 5 和 ios 6 中UIImagePickerController呈现的 ViewController ?presentModalViewController我在互联网上搜索了很多但没有成功。请帮忙。

4

0 回答 0