Re: Choosing view controller for segue
Re: Choosing view controller for segue
- Subject: Re: Choosing view controller for segue
- From: Steve Mills <email@hidden>
- Date: Thu, 15 Jun 2017 21:06:49 +0000 (GMT)
On Jun 15, 2017, at 03:50 PM, Quincey Morris
<email@hidden> wrote:
Can’t you solve it by putting two different segues in the storyboard, from the
same source VC?
I'm not sure how to add a 2nd one from a common source. When I try
right-dragging from the embedding view to the 2nd target VC, it deletes the
segue already wired to the 1st target VC.
If you’re initiating the segue in code, then choose which one to perform at
time of initiation.
If you’re initiating the segue from a UI element that is configured with one
specific segue identifier, I’d try overriding [UIViewController
performSegueWithIdentifier:sender:] and invoke super with either of two
different segue identifiers.
I tried overriding performSegueWithIdentifier:sender:, but it never gets
called. I'm not sure if it makes a difference, but this is an Embed segue that
I'm trying to control. I can segue to the master view controller just fine, but
it's an embedded one that I want to have control over. I might have to run the
embed segue from code instead of letting the storyboard handle it.
I hate being a newbie at stuff like this. :)
Sent from iCloud's ridiculous UI, so, sorry about the formatting
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden