我有一个处于纵向模式的UIViewController
内部。UInavigationController
它的视图有一个UIButton
当点击时呈现一个自定义UIImagePickerControllerView
的视图(在同一个 nib 文件中)作为presentModalViewController
. 我只希望 ViewController 以横向模式显示。
我试图实现返回 true 的shouldAutoroateToInterfaceOrientation
方法UIInterfaceOrientationLandscapeLeft
,但它会旋转父 ViewController,而不是 UIImagePickerController
显示为presentModalViewController
. 如何旋转在 ios 5 和 ios 6 中UIImagePickerController
呈现的 ViewController ?presentModalViewController
我在互联网上搜索了很多但没有成功。请帮忙。