> On 13 May 2016, at 23:03, Kyle Sluder <k...@ksluder.com> wrote: > > 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 >
Yes I know it’s not customizable - but I was looking for a shorter term solution than an enhancement request, because I actually need to write the app. Is there a way to locate the exit segue method in a similar way to how exit segues themselves would find it so I can call it directly. In this case the exit segue is implemented by a VC pushed onto a nav stack below the one exiting. triggering the exit segue from viewWillDissapear: works but has a very fragile feel to it. targetForAction:withSender: doesn’t work because the responder chain goes through the nav controller and on upwards, but not through the sibling pushed VCs targetViewControllerForAction:withSender I hoped would work, but seems to have the same issue, I don’t think the nav controller checks its children VCs I didn’t really want to rebuild the machinery using allowedChildViewControllersForUnwindingFromSource: etc and hoped there was a pre-existing method to do the resolution. Looks like I’m using a protocol and revisiting in 2 years. _______________________________________________ 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