Chapter 12. Telling stories with storyboards
This chapter covers
- Storyboards and how to use them
- More about segues
All the apps you’ve created so far have been single view applications with only one screen that updates based on a user action. In this chapter, you’re going to learn how to create apps with multiple screens that link to each other through user actions.
Storyboards are a little bit like what they sound like—a way to visualize a story and how the parts of the story are related. If you imagine a graphic novel (that’s what the cool kids are calling comic books these days), there are multiple panels that together tell a story. Each panel flows into the next so the reader can follow the story. If you were writing your own graphic novel, you might start out with several blank panels and lay them out so you could begin planning the novel. You might sketch in a few details on each panel to start, and then begin filling in more details as time progresses.
Storyboards in Xcode are similar to creating a graphic novel. You can lay out multiple panels (henceforth known as scenes), show how these scenes interact, and then add more detail to each scene. The storyboards give you a conceptual view of your application and how the scenes fit together and flow. Let’s create an app so we can walk through storyboards and see some of the coolness in action.