Unwind segue works from split view detail but not master
| Originator: | invalidname | ||
| Number: | rdar://19826976 | Date Originated: | 2/13/15 |
| Status: | open | Resolved: | |
| Product: | iOS SDK | Product Version: | 8.1 |
| Classification: | other bug | Reproducible: | always |
Summary:
Unwind segues called from the master view controller of the standard split view controller arrangement cannot unwind past their own master view controller, even when the same unwind works from a detail VC in the same split.
Steps to Reproduce:
Run the attached UnwindBuglet project. This consists of:
1. A FirstViewController scene with a "login" button, and an unwindToFirstViewController() method. When tapped, the login button does a modal segue to…
2. A UISplitViewController, consisting of:
3. A UINavigationController whose root is a MasterViewController, which is just a UITableViewController subclass. This has two cells, which will be explained in a moment
4. A plain UIViewController for the detail VC
The table in 3 has two cells: one is wired to an exit segue to go back to unwindToFirstViewController(), and the other goes to the usual selection handling, which calls performSegueWithIdentifier("manualUnwindToFirstViewController"), which is a manual exit segue.
The VC in 4 has a single button to perform an exit segue to unwindToFirstViewController()
Expected Results:
All exit segues should unwind back to the first view controller
Actual Results:
Only the button in the detail VC can unwind to the first VC. The exit segues in cells of the master VC do nothing.
Version:
Xcode 6.1.1
Notes:
Configuration:
Xcode 6.1.1 on Late 2013 MacBook Pro
Attachments:
'UnwindBuglet.zip' 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!
Sample code
Public link to sample code: https://dl.dropboxusercontent.com/u/12216224/buglets/UnwindBuglet.zip