Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/112.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何在UINavigationController内的UIViewController上方旋转显示为presentModalViewController的UIViewController_Ios_Iphone_Uinavigationcontroller_Rotation - Fatal编程技术网

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?我在网上搜索了很多,但没有成功。请帮忙