Graphically Designing Your UI in a Universal Way

When building an app for both the iPhone and iPad, we must consider the differences in screen size for each device. Because the two devices do not share an aspect ratio, we should really create a layout for each device. In this section, we will cover how to create a layout for each device type, as well as create classes that will be used depending on which device the application is running on.

Xcode provides a convenient and powerful tool for laying out the graphical elements of an application. Historically, that was done with the application Interface Builder, which was a stand-alone application. In recent versions of Xcode, the functionality of Interface Builder has been rolled into Xcode to ...

Get Beginning iOS 5 Games Development: Using the iOS 5 SDK for iPad, iPhone, and iPod Touch 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.