Re: Making two segues to the same view?
Re: Making two segues to the same view?
- Subject: Re: Making two segues to the same view?
- From: Alex Hall <email@hidden>
- Date: Tue, 06 Oct 2015 12:50:31 -0400
> On Oct 6, 2015, at 11:42, Geoffrey Goutallier <email@hidden> wrote:
>
> Hello Alex,
>
> That's not how you do it.
>
> You have to use an unwind segue, declared in MainView, then drag'n drop from your button in View 1 or 2 to the 'exit' icon (red) right on top of View 1 and View 2.
Okay, I've never heard of this, so looked it up. This does indeed look like what I'm trying to do, thanks for the tip! My only question--and I realize no one will probably know--is how to do this with VoiceOver? I can't control-drag at all, and I can't seem to get my mouse to move to either my button or the Exit item.
>
> I do not know how the correct syntax on top of my head, but just google "iOS unwind segue" and you will find it :)
>
> ++
>
> Sent from my iPhone
>
>> On 06 Oct 2015, at 16:34, Alex Hall <email@hidden> wrote:
>>
>> Update: I got it to work, but the process was odd. I changed the 'show' segue from View2 to Main View to be modal, then I was able to make the segue from View1 to Main View with no problem. I changed the other segue back to 'show' and now both are working. I wonder if the problem was a naming conflict? Both views have a button called "back to main menu", so they would both make a segue of the same name. Well, at least there's a way around this one, whatever the root problem is.
>>> On Oct 5, 2015, at 23:01, Alex Hall <email@hidden> wrote:
>>>
>>> Hello list,
>>> I was setting up the very basics of an iOS app, just a simple interface with some segues. I ran into something odd, though.
>>>
>>> Main View holds two buttons, each set to segue to a different view--View1 or View2. That's two segues, with no problems. View2 has a button set to segue back to Main View, again with no trouble. When I try to make View1's button segue back to Main View, I can't do it. I select Main View in the outline, but when I try to route the mouse to the 'show' segue in the inspector, the mouse won't go. I've come to learn that this generally isn't the fault of VoiceOver or Xcode, but is actually an indicator that what I'm trying to do is illegal.
>>>
>>> I see one segue already, but I can't make a new one. How, then, do I make two views segue back to the same view? Thanks in advance for any suggestions. I'm on 10.11, Xcode7.1 beta 2, and am obviously using VoiceOver for all this.
>>>
>>> --
>>> Have a great day,
>>> Alex Hall
>>> email@hidden
>>
>>
>> --
>> Have a great day,
>> Alex Hall
>> 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
--
Have a great day,
Alex Hall
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