Ios 如何在UINavigationController内的UIViewController上方旋转显示为presentModalViewController的UIViewController
我有一个Ios 如何在UINavigationController内的UIViewController上方旋转显示为presentModalViewController的UIViewController,ios,iphone,uinavigationcontroller,rotation,Ios,Iphone,Uinavigationcontroller,Rotation,我有一个UIViewController内部UInavigationController处于纵向模式。它的视图有一个ui按钮,当点击时,它会显示一个自定义uiImagePickerController视图(在同一个nib文件中)作为presentModalViewController。我只希望ViewController以横向模式显示 我试图实现shouldAutoroatoInterfaceOrientation方法,其中UIInterfaceOrientationAndscapeLeft返回
UIViewController
内部UInavigationController
处于纵向模式。它的视图有一个ui按钮
,当点击时,它会显示一个自定义uiImagePickerController视图
(在同一个nib文件中)作为presentModalViewController
。我只希望ViewController以横向模式显示
我试图实现shouldAutoroatoInterfaceOrientation
方法,其中UIInterfaceOrientationAndscapeLeft
返回true,但它旋转父视图控制器,而不是显示为presentModalViewController
的UIImagePickerController
视图控制器。
如何旋转ios 5和ios 6中显示为“presentModalViewController”的UIImagePickerController
ViewController?我在网上搜索了很多,但没有成功。请帮忙