presenting view controller is nil

Number:rdar://22394059 Date Originated:23-Aug-2015 02:28 PM
Status:Duplicate of 21489507 (Closed) Resolved:
Product:iOS SDK Product Version:
Classification:Other bug Reproducible:
When the UIViewControllerTransitioningDelegate method 
- presentationControllerForPresentedViewController:presentingViewController:sourceViewController: is called, the presenting view controller is unexpectedly nil.

Steps to Reproduce:
1. Open the attached sample project, which implements presentationControllerForPresentedViewController:presentingViewController:sourceViewController: and asserts all the arguments are non-nil
2. Run it
3. Tap to present a view controller

Expected Results:
For no assertion to fail. I.e. for presented, presenting, and source to to non-nil, as they are documented as nonnull.

Actual Results:
presenting is nil.

iOS 9 beta 5

Workaround: the source is often good enough so we are currently basing decisions about what presentation controller to return by querying `presenting ?: source`.

iPhone 4S iOS 9 simulator

'presenting is' was successfully uploaded.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at 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!