View controllers are responsible for managing a single view hierarchy. The top-level view, containing all of the subviews, is stored in the view property of the view controller.
There are multiple ways to provide a UIViewController with a view:
- In a storyboard, you can design the complete view hierarchies of multiple view controllers, embed controllers, and use advanced features such as segues and transitions. Storyboards can get very complex quickly, and many developers prefer not to use them. For me, though, they are a very powerful tool, to be used with great care.
- From a nib, which lets you define a single UIViewController. Nibs have the advantage of being more lightweight than storyboards, but they are ...