Adding a Split View Controller

CarValet is already configured to be a universal app. At the moment, you cannot run it on an iPad, but as you will see soon, that is only because of some tab bar-specific code. Without that code, you would see a blank screen. This makes sense because the storyboard for iPad, added by Xcode as part of the initial project, is a view controller with an empty view.

You can make any new project universal by using the Device popup in Xcode, as shown in Figure 11-3.

Image

Figure 11-3 Creating a universal project

In this section, you add everything needed to show a split view controller with a basic menu and static detail content. ...

Get Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming 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.