kunal
kunal

Reputation: 88

Conditional storyboarding

Have read some great tutorials online about the new storyboarding feature of xcode 4.2. I just cant seem to find information on conditional storyboarding. For example making a storyboard where one button can take you to different screens based upon the value of a boolean variable.

Upvotes: 4

Views: 3202

Answers (1)

Andy Dent
Andy Dent

Reputation: 17969

This scenario is addressed in episode 7 of the Stanford 2011 lectures on iOS development, on Universal Applications. Setup a target action for the button and in the code use performSegueWithIdentifier to a different segue.

This also allows you the flexibility to have an iPad version which doesn't do a segue because the desired view is already onscreen in a split view.

Upvotes: 5

Related Questions