Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 8 - Unwind Segues for Front View Controllers not triggered #332

Open
coridn opened this issue Sep 18, 2014 · 1 comment
Open

iOS 8 - Unwind Segues for Front View Controllers not triggered #332

coridn opened this issue Sep 18, 2014 · 1 comment

Comments

@coridn
Copy link

coridn commented Sep 18, 2014

In my specific case, I have the SWRevealViewController as my root, which embeds a navigation controller as the front view controller, and then a long tree of view controllers where, eventually, one shows a modal view controller.

In iOS 7, unwind segue is triggered, it calls the method -(UIViewController *)viewControllerForUnwindSegueAction:fromViewController:withSender: on the presenting view controller, which returns self. This allows the view controller to define who should handle creating the segue for unwinding.

In iOS 8, this is no longer the case. The exit segue is now delegated to the root view controller, which in my case, would be the SWRevealViewController. The SWRevealViewController does not forward the message to the front view controller, therefore, the exit segue never gets created.

I'll be creating a fork and submitting a pull request to fix this, but I assume there should be some discussion on how you would like the logic to flow. I have how I would imagine it works.

@agordeev
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants