I have a hard time understanding the segue unwinding.

I have a simple storyboard setup. UIViewController with
UINavigationController. On a table cell click a custom segue pushes a
new UIViewController onto the navigation stack. But then pressing the
"back" button in the navigation bar, it only uses the default pop
animation.

Now the is the question how do I tell the navigation controller to use
my custom segue when popping back? There are

  segueForUnwindingToViewController:fromViewController:identifier:
  canPerformUnwindSegueAction:fromViewController:withSender:

but it seems like those do not get called unless there is an action

  - (IBAction)unwind:(UIStoryboardSegue *)segue;

wired up to the exit. Unfortunately IB doesn't allow me to wire that
up to the back button.

Any suggestions?

I've already wasted so much time on this that I am almost tempted to
go down the route of subclassing UINavigationController, trying to
trigger a segue manually on a pop.

cheers,
Torsten
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to