Modal unwind segue stops working when embedded (e.g. with Form sheet)

Originator:sduke
Number:rdar://20707045 Date Originated:27-Apr-2015 12:15 PM
Status:Open Resolved:Duplicate of 12693349 (Open)
Product:iOS Product Version:8.2, 8.1, 7.1.2, 8.2
Classification: Reproducible:Yes
 
Summary:
Related SO post here:
http://stackoverflow.com/questions/15861373/ios-unwind-segue-stops-working-when-embedded-in-a-navigation-controller/15864386#comment47909882_15864386

Steps to Reproduce:
Add a navigation controller (NC) to a new storyboard and make it the initial VC
Add a view controller (VC1) as the root view controller of NC.
Create a View controller class for VC1 and create an empty unwind segue.
Add another view controller (VC2) to the storyboard
Add a button (GO) to VC1 and have it modally present VC2 with form sheet presentation style
Add a button (BACK) to VC2 and connect it to the unwind segue defined in VC1.
Run on an iPad (or anything without compact horizontal). Press GO, VC2 is presented. Press BACK, nothing happens.

If this is run on an iPhone (i.e. VC2 is presented full screen), BACK will dismiss VC2.
If VC2 is set as the initial View controller, BACK will dismiss VC2. The presence of the nav controller causes the issue

Expected Results:
VC2 should be dismissed when pressing back.



Actual Results:
The unwind segue method is called, but nothing happens.

Version:
8.2, 8.1, 7.1.2, 8.2

Notes:
The iPhone 6+ in horizontal recreates this bug but in vertical does not (as the modal is shown full screen) as this is clearly something to do with horizontal compactness and whether VC1 is currently visible on screen.

Configuration:
iPad retina simulator running 8.2, iPad air 2 running 8.1, iPad mini running 7.1.2, iPhone 6+ simulator running 8.2 in horizontal

Attachments:

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!