Re: Unwind segues

2013-04-30 Thread Matt Neuburg
On Tue, 30 Apr 2013 13:13:47 -0700, Rick Mann said: >Where are these documented? Here! http://www.apeth.com/iOSBook/ch19.html#_unwind_segues :) m. -- matt neuburg, phd = m...@tidbits.com, A fool + a tool + an autorelease pool = cool! Programming iOS 6! http://shop

Re: Unwind segues

2013-04-30 Thread Alex Zavatone
OK. Here's an idea. Try a simple case. Create an empty app with a nav controller and a button to segue to another screen. Then one more to do the same. Set up a simple case where your method should get triggered on an exit case and see if it does in a simple, easily trashable file that yo

Re: Unwind segues

2013-04-30 Thread Rick Mann
Oh! I think I found the problem. Looks like I might have to implement - (BOOL)canPerformUnwindSegueAction:(SEL)action fromViewController:(UIViewController *)fromViewController withSender:(id)sender which seems rather lame; the default behavior to return YES would be helpful. On Apr 30, 2013, at

Re: Unwind segues

2013-04-30 Thread Rick Mann
On Apr 30, 2013, at 14:21 , Alex Zavatone wrote: > Odd. I've never played around with the exits yet. If you hook it up to a > UIButton and trigger is manually with a tap, does it get called? Yes, that's how I had it before. I just wanted to try the "new" way. > Try that and set a breakpoin

Re: Unwind segues

2013-04-30 Thread Alex Zavatone
Odd. I've never played around with the exits yet. If you hook it up to a UIButton and trigger is manually with a tap, does it get called? Try that and set a breakpoint on it and see if there is a clear call chain. If it doesn't appear in the execution chain, then it might be one of those har

Re: Unwind segues

2013-04-30 Thread Rick Mann
On Apr 30, 2013, at 14:15 , Alex Zavatone wrote: > Are you expecting these to be called when a segue unwinds because I can. Of > see these declared in any of the docs. If something calls an IBAction, these > are generally attached to an IBOutlet (a button) and are triggered on > touchUpInsid

Re: Unwind segues

2013-04-30 Thread Alex Zavatone
Are you expecting these to be called when a segue unwinds because I can. Of see these declared in any of the docs. If something calls an IBAction, these are generally attached to an IBOutlet (a button) and are triggered on touchUpInside, so they need to be wired up to the button. I hope I am u

Re: Unwind segues

2013-04-30 Thread Rick Mann
On Apr 30, 2013, at 13:56 , Alex Zavatone wrote: > Looks Iike the closest I can find is within the UIViewController. I searched > all the frameworks of iOS 6.0 using Dash and Xcode 4.6.1. > > If it is an IBOutlet, then this is your method. You need to create it. Hey, Alex, thanks. I'm not su

Re: Unwind segues

2013-04-30 Thread Alex Zavatone
Looks Iike the closest I can find is within the UIViewController. I searched all the frameworks of iOS 6.0 using Dash and Xcode 4.6.1. If it is an IBOutlet, then this is your method. You need to create it. Sent from my iPad On Apr 30, 2013, at 4:13 PM, Rick Mann wrote: > Where are these docu

Unwind segues

2013-04-30 Thread Rick Mann
Where are these documented? I found some information on Stackoverflow. I put an -unwind: method in the same controller as the one that contains the button that's connected to the exit. IB allows me to connect to this unwind: method, but it never calls it at run time. I tried putting a method in