仅在纵向模式下的UIImagePicker弹出窗口在iPhone中?

时间:2013-10-21 09:38:18

标签: ios

当我的应用处于横向模式时,UIImagePicker以纵向模式打开。

enter image description here

UIimage选择器的

代码是

picker = [[UIImagePickerController alloc] init];

picker.delegate = self;
picker.allowsEditing = YES;

picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentViewController:picker animated:YES completion:nil];

1 个答案:

答案 0 :(得分:1)

UIImagePickerController类仅支持纵向模式。此类旨在按原样使用,不支持子类化。此类的视图层次结构是私有的,不得修改,但有一个例外。您可以将自定义视图分配给cameraOverlayView属性,并使用该视图显示其他信息或管理相机界面与代码之间的交互。

Reference from Apple docs