Chapter 11Creating a Universal App


  • Creating an iPad Storyboard
  • Supporting Rotation Using Auto Layout
  • Implementing Popovers


You can find the code downloads for this chapter at on the Download Code tab. The code is in the chapter 11 download and individually named according to the names throughout the chapter.

The Bands app you have created so far is designed to run on an iPhone or an iPod Touch. You can also run the app on an iPad using the iPads compatibility mode. Compatibility mode displays the app on an iPad as though it is running on an iPhone, even using the same dimensions. You can use the 2x button in compatibility mode to double the size of the app so that it uses the full screen, but apps tend to look pixilated when doing this, deteriorating the user experience. iPad users typically choose to run apps that were designed for iPad. Developers have the option to create a separate iPad app or they can create a universal app.

The guts of a typical iOS app will be the same no matter what device they run on. Therefore, universal apps can share much of the code between their iPhone and iPad implementations. The big difference is the user interface. Universal apps are a single build that contains user interfaces and code for both iPhone/iPod touch and iPads. iPads are obviously bigger and thus have more screen real estate. Designers can use that space to ...

Get Beginning iOS Programming: Building and Deploying iOS Applications now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.