From the course: Swift: Delegations and Data Sources
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Destination view controllers in storyboards
From the course: Swift: Delegations and Data Sources
Destination view controllers in storyboards
- [Narrator] Other than code, you may be using storyboards. Instead of writing your code in viewDidLoad, you make scenes on the storyboard dragging and dropping other views into the superview of your controller. You can find an example project in the exercise files. On this storyboard there are plenty of scenes. Each of the scenes is a different view controller. Notice the lines between the scenes. In Xcode, we have what are known are segues. Segues point from one view controller to another. When we move from one controller to the next, the segue tells the system to open up this particular view controller, which then opens up its view model. To get a segue on the storyboard, you usually control drag from a button to another scene. If I zoom down here a little there's no segue between the desserts button and the desserts view controller. Control drag from desserts to the controller. The segue highlights, and I release the mouse button. I get a menu of the type of segue. If you're using…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.