UIImagePickerController uses a weird pop animation when its modalPresentationStyle is FullScreen or PageSheet and the device is in landscape mode

Originator:daniel.clelland
Number:rdar://26616321 Date Originated:03-Jun-2016 03:48 PM
Status:Open Resolved:No
Product:iOS SDK Product Version:iOS 9.3
Classification: Reproducible:Always
 
Summary:
When I present a UIImagePickerController with its modalPresentationStyle set to FullScreen or PageSheet, it seems to use a weird transition for popping view controllers when the device is in landscape mode. 

let imagePicker = UIImagePickerController()
imagePicker.modalPresentationStyle = .FullScreen // or .PageSheet
presentViewController(imagePicker, animated: true, completion: nil)

Steps to Reproduce:
1. Present a UIImagePickerController using the above code
2. Make sure the iPad is in landscape mode
3. Navigate into any of the options displayed (e.g. Moments)
4. Hit the back button

Expected Results:
The view controller would transition back using the usual pop animation

Actual Results:
The view controller flies off the side of the screen (always towards the device's home button, which is extra strange)

Version:
iOS 8.3, iOS 9.3

Notes:


Configuration:
iPad Air, iPad simulator

Attachments:
'ImagePickerDemo.mov' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!