Unwinding a modal segue with a modal presentation style of UIModalPresentationCurrentContext requires the developer to explicitly dismiss it if the origin view controller is embedded in a UINavigationController

Originator:fabio
Number:rdar://17794274 Date Originated:24/07/2014
Status:Open Resolved:No
Product:iOS SDK Product Version:7.1
Classification:Bug Reproducible:Yes
 
Summary:
In order to present a new view controller in an overlay style in the iPhone while keeping the underlying one visible I set the modal presentation style of my view controller hierarchy to UIModalPresentationCurrentContext. 
This achieves the desired effect but whenever I use a unwind segue to dismiss that modal view controller I have to explicitly dismiss it but only if the origin view controller is embedded in a UINavigationController. This differs from all the other modal presentation styles where just triggering an unwind segue brings me back to the right view controller.

Steps to Reproduce:
Open the sample project and touch the "Launch Modal" button;
Verify that you can see through the modal view controller;
Touch the "Dismiss this screen" to go back to the origin view controller.

Expected Results:
After performing the previous steps the modal view controller should have been dismissed.

Actual Results:
The modal view controller is not dismissed and the developer has to dismiss it explicitly in the unwind method.

Version:
iOS 7.1 (iOS 8 does not let me see through)

Notes:


Configuration:
All devices including the simulator

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!