I believe this is a common issue and many answers don\'t work anymore, many just partial, if you are under iOS7 and your iPad app is Landscape only, but you want to use the
Although most answers recommend using .currentContext, I have found out after dismissing the imagepicker, everything was wrong.
On an Landscaped iPad, imho it's best if you would use .formSheet:
let picker = UIImagePickerController()
picker.modalPresentationStyle = .formSheet
picker.sourceType = .photoLibrary
picker.delegate = self
self.present(picker, animated: true)