Re: UINavigationController
Re: UINavigationController
- Subject: Re: UINavigationController
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 30 Nov 2016 19:23:40 +0700
> 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.
_______________________________________________
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