Re: UINavigationController
Re: UINavigationController
- Subject: Re: UINavigationController
- From: Alex Zavatone <email@hidden>
- Date: Wed, 30 Nov 2016 16:00:04 -0600
On Nov 30, 2016, at 6:23 AM, Gerriet M. Denkmann wrote:
>
>> On 30 Nov 2016, at 16:37, Quincey Morris <email@hidden> wrote:
>>
>> On Nov 30, 2016, at 00:44 , Gerriet M. Denkmann <email@hidden> wrote:
>>>
>>> Tapping the UIBarButtonItem in the Main scene should make the UINavigationController segue to the SettingsViewController.
>>> How to set this up in Xcode?
>>
>> Is this a trick question, or just a where-the-hell-is-it question?
>
> The question is the inverse of your (very helpful) answer:
>>
>> Select the button, go to Connections Inspector, find Triggered Segues section, drag from the circle beside “action” to the SettingsViewController.
>
> Did this, and now the button shows the “Settings” scene, which also has a nice friendly “< Back” button, which brings back the Main scene.
>
>
>> If you also need to unwind from the SettingsViewController back to wherever it came from, remember to create an action with this signature:
>>
>>> - (IBAction) unwindToWherever: (UIStoryboardSegue*) sender
>
> Did this, and Xcode showed it in the Connections Inspector for the Exit thingy
>
>> (It’s the parameter type that’s important.) Then you can connect the Triggered Segue action to the Exit button on the SettingsViewController in the canvas. It’s ridiculously hard to figure this out if you’ve forgotten the signature rule.
>
> This Xcode did not allow me to do: control-dragging all over the place: nothing sticks.
> But: as I said above, the friendly NavigationController arranges all automatically.
>
> Thanks a lot!
>
>
> Kind regards,
>
> Gerriet.
> This Xcode did not allow me to do: control-dragging all over the place: nothing sticks.
Yeah, that's the rough part. I went NUTS trying to drag an outlet from the storyboard onto the little empty circle of a UIOutlet in a header file.
Well, you can't. You have to drag onto the name of the variable to the right of it. Even though clicking the circle to the left of a connected UIOutlet in code shows all the objects it's connected to, you can't drag to it, which is pretty much nonsense and terribly unintuitive.
_______________________________________________
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