横向模式下的 UIImagePicker IOS 8
UIImagePicker in Landscape mode IOS 8
我的应用使用横向模式,需要访问照片库。出现这个错误:Supported orientations has no common orientation with the application, and [PUUIAlbumListViewController shouldAutorotate] is returning YES'
var image = UIImagePickerController()
image.delegate = self
image.sourceType = UIImagePickerControllerSourceType.PhotoLibrary
image.allowsEditing = false
self.presentViewController(image, animated: true, completion: nil)
来自the docs:
The UIImagePickerController class supports portrait mode only.
我的应用使用横向模式,需要访问照片库。出现这个错误:Supported orientations has no common orientation with the application, and [PUUIAlbumListViewController shouldAutorotate] is returning YES'
var image = UIImagePickerController()
image.delegate = self
image.sourceType = UIImagePickerControllerSourceType.PhotoLibrary
image.allowsEditing = false
self.presentViewController(image, animated: true, completion: nil)
来自the docs:
The UIImagePickerController class supports portrait mode only.