Chapter 3. Using storyboards to organize and visualize your views

 

This chapter covers

  • Creating a task management app
  • Overview of Xcode’s interface tools
  • Using storyboarding in your applications
  • Transitioning between scenes using segues
  • Passing data between view controllers

Until recently, every view controller in iOS needed its own separate file for its interface (known and phonetically pronounced as NIBs but having the extension .xib). NIBs are individual interface files that allow you to create interfaces graphically instead of programmatically. You would need to edit these independently of other view controllers within the same application. Some developers would even choose to skip NIBs altogether and create their views programmatically. Those who did this often felt that they needed more control or were uncomfortable using Xcode’s built-in interface tools. Even though these two approaches to creating interfaces are radically different, they do have a few things in common. For one, with either solution, no single file encompasses all of the interfaces for the application. They also lack the ability to visually see how each view controller interacts with others within their application.

3.1. Building a task management app

3.2. Exploring Xcode’s interface editor

3.3. Using storyboards to manage your views

3.4. Summary