Re: Can't connect to Exit in IB
Re: Can't connect to Exit in IB
- Subject: Re: Can't connect to Exit in IB
- From: Quincey Morris <email@hidden>
- Date: Fri, 24 Jan 2014 16:01:49 -0800
On Jan 24, 2014, at 14:03 , Rick Mann <email@hidden> wrote:
I put an IBAction into both the presenting and presented view controllers, with different names. I control-drag from a button in my presented view controller (which has a modal segue from the presenting VC) to the green Exit target, but it doesn't highlight as a possible target and no actions come up in the menu.
What's going on?
You have to read the documentation very, very carefully. The Exit item represents an unwind segue, and you need something in your project to have an unwind segue action method, which looks like this:
- (IBAction) unwindMySegue: (UIStoryboardSegue*) sender
If the type of the parameter is anything other than UIStoryboardSegue*, the action won’t appear in the Exit popup.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden