15. View Controllers and Segues
In Chapter 14, “Storyboarding in Xcode,” you learned how to use a storyboard to build the initial user interface for PhotoWheel. You created the main storyboard, added two scenes to it, and used a segue to display the About scene from the main scene. All of this was accomplished without writing a single line of code—but we developers know an app cannot really be useful unless there is code.
This chapter shows you how to do more with your scenes by writing custom view controller classes, with each view controller managing a storyboard scene. You will also learn how to create and use custom segues to give your app that special somethin’-somethin’.
Implementing a View Controller
You learned early on in the book that ...
Get Learning iPad Programming: A Hands-On Guide to Building iPad Apps, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.