• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
unwind custom segue and uinavigationcontroller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

unwind custom segue and uinavigationcontroller


  • Subject: unwind custom segue and uinavigationcontroller
  • From: Torsten Curdt <email@hidden>
  • Date: Thu, 21 Mar 2013 13:47:46 +0100

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 (email@hidden)

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:

This email sent to email@hidden

  • Prev by Date: Re: Number of chars
  • Next by Date: LTO and debugging
  • Previous by thread: Re: Number of chars
  • Next by thread: Re: unwind custom segue and uinavigationcontroller
  • Index(es):
    • Date
    • Thread