I was not involved in delegating and processing responses to the image picker here, the purpose of this post was simply to consider using UIImagePickerController without resorting to obsolete classes and methods.
let myPicker = UIImagePickerController() myPicker.sourceType = UIImagePickerControllerSourceType.PhotoLibrary myPicker.modalPresentationStyle = UIModalPresentationStyle.Popover self.presentViewController(myPicker, animated: true, completion: nil) let popper = myPicker.popoverPresentationController
Please correct if necessary.
source share