我的应用程序使用景观模式,需要访问图片库。出现此错误:受支持的方向与应用程序没有共同的方向,PUUIAlbumListViewController shouldAutorotate将返回“是”
var image = UIImagePickerController()
image.delegate = self
image.sourceType = UIImagePickerControllerSourceType.PhotoLibrary
image.allowsEditing = false
self.presentViewController(image, animated: true, completion: nil)发布于 2015-02-01 21:09:32
来自医生们
UIImagePickerController类只支持纵向模式。
https://stackoverflow.com/questions/28267181
复制相似问题