• 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
Re: unwind segue on navigation pop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unwind segue on navigation pop


  • Subject: Re: unwind segue on navigation pop
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 13 May 2016 10:03:34 -0500

On Thu, May 12, 2016, at 09:48 PM, Roland King wrote:
> I’m making more use of unwind segues to try and get to the point I have
> ‘go forward’ and ‘go backward’ code in one place in the same class. So
> during prepareForSegue I set some stuff up, during my unwind segue method
> I tear it down again. Don’t use it for everything, but for some complex
> presentations it’s been quite useful.
>
> I’ve just changed a piece of navigation to use a standard nav controller,
> it used to be a modal presentation but a push makes more sense. So now
> there’s no custom dismiss button like there used to be, you go back with
> the normal back button on the nav controller. I can’t find a good way to
> get that back action to trigger my unwind segue. Can’t seem to do it in
> IB, I don’t want a custom back button because you lose the chevron (or
> have to fake it) and all the normal uinav behaviour.

The Back button is not customizable in this fashion. Please file an
enhancement request at https://bugreport.apple.com.

--Kyle Sluder

>
> Best I’ve found so far is to give the segue a custom identifier (ie make
> it a viewcontroller segue) and performSegue it from ‘viewWillDisappear’,
> however that has a pretty bad smell about it because that’s not really an
> unwind, it’s already doing the dismissal by then. Feels like something
> which is going to break one day.
>
> There’s other ways I can do this obviously - change it to a
> protocol/delegate method called directly from the VC as it goes away, but
> I was trying to stick with unwind segues if possible.

_______________________________________________

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


  • Follow-Ups:
    • Re: unwind segue on navigation pop
      • From: Roland King <email@hidden>
References: 
 >unwind segue on navigation pop (From: Roland King <email@hidden>)

  • Prev by Date: Re: objc [66375] class Foo is implemented in both BundleA and BundleB
  • Next by Date: Re: Application Activation Problem
  • Previous by thread: unwind segue on navigation pop
  • Next by thread: Re: unwind segue on navigation pop
  • Index(es):
    • Date
    • Thread