我的应用使用横向模式,需要访问照片库。出现此错误:支持的方向与应用程序没有共同的方向,[PUUIAlbumListViewController shouldAutorotate]返回YES'
var image = UIImagePickerController()
image.delegate = self
image.sourceType = UIImagePickerControllerSourceType.PhotoLibrary
image.allowsEditing = false
self.presentViewController(image, animated: true, completion: nil)