Choosing view controller for segue
Choosing view controller for segue
- Subject: Choosing view controller for segue
- From: Steve Mills <email@hidden>
- Date: Thu, 15 Jun 2017 19:45:49 +0000 (GMT)
What's the best way to programmatically choose which view controller will be
used to segue to? The storyboard was initially set up to segue to a particular
view controller, but now I want to choose a different target depending on a
user setting.
I ask because there appears to be no simple way to switch a
UIPageViewController from showing 1 page at once to 2 pages at once aside from
loading a different one from the storyboard, or by allocating a different one
programmatically. Seems like a huge oversight on Apple's part. So when I segue
to this view, I need to choose the 1-page or 2-page version, depending on the
user setting.
There's no mention of using a different view controller in
prepareForSegue:sender:'s docs.
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