Re: Creating segues
Re: Creating segues
- Subject: Re: Creating segues
- From: Alex Zavatone <email@hidden>
- Date: Mon, 14 Sep 2015 18:18:42 -0400
What happens in a new storyboard with the simplest of setups, two scenes and one embedded in a nab controller?
Sent from my iPhone
> On Sep 14, 2015, at 6:02 PM, Carl Hoefs <email@hidden> wrote:
>
> No, the situation is the same with or without an embedding nav controller.
>
> 1. I make a new single-view iOS app.
> 2. I embed that view in a nav controller
> 3. I drag another view controller onto the storyboard
> 4. I try to control drag between the initial VC and the new one. No go.
> 5. Xcode doesn't allow me to create *any* segues except from the root nav controller.
>
> What gives?
> -Carl
>
>> On Sep 14, 2015, at 2:56 PM, Alex Zavatone <email@hidden> wrote:
>>
>> Well, there has to be one backing them all which it sound like you have done.
>>
>> Have you tried control dragging from one scene's view to the top level of the view controller you want the segue to go to?
>>
>> I admit it can be a clunky and frustrating experience knowing where to drag to and how.
>>
>> Sent from my iPhone
>>
>>> On Sep 14, 2015, at 5:53 PM, Carl Hoefs <email@hidden> wrote:
>>>
>>> Did that, no effect. Are you saying that *all* view controllers must be embedded in a nav controller? Surely not, as I can get away without it for a single level of sub view controllers.
>>>
>>> -Carl
>>>
>>>
>>>> On Sep 14, 2015, at 2:45 PM, Alex Zavatone <email@hidden> wrote:
>>>>
>>>> I'm assuming iOS here.
>>>>
>>>> Have you done the little "select your first screen and then select Embed in > Navigation Controller" from the Editor menu in the storyboard?
>>>>
>>>> Until you've done it a few times, it's real easy to miss.
>>>>
>>>> Until you've done that, the IB won't let you drag segues and sadly, it won't tell you that you need to do that.
>>>>
>>>> Hope that's it.
>>>>
>>>> Alex Zavatone
>>>>
>>>>> On Sep 14, 2015, at 5:38 PM, Carl Hoefs wrote:
>>>>>
>>>>> Xcode 6.4
>>>>>
>>>>> How does one create a segue from a non-initial view controller to another view controller?
>>>>>
>>>>> I have an InitialVC:UIViewController and I can connect any number of other VC's to it with control drag:
>>>>>
>>>>> InitialVC
>>>>> / \
>>>>> A_VC B_VC . . .
>>>>>
>>>>> I've assigned an identifier to each of the segues and can invoke them to bring up A_VC or B_VC at runtime with -performSegueWithIdentifier:. So far so good. But now I need to have segues going from A_VC to C_VC, D_VC, etc:
>>>>>
>>>>> InitialVC
>>>>> / \
>>>>> A_VC B_VC . . .
>>>>> / \
>>>>> C_VC D_VC
>>>>>
>>>>> Xcode refuses to allow me to connect A_VC to C_VC or D_VC with control-drag. The blue line just vanishes. It doesn't matter what type of segue goes from InitialVC to A_VC (push, replace, modal, etc).
>>>>>
>>>>> I must be missing something real obvious here.
>>>>> -Carl
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>
_______________________________________________
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