Game Development Reference
In-Depth Information
Figure 2-1. An application design to work on the iPhone and iPad in all orientations
Figure 2-1 shows the application running on an iPhone and iPad simulator. This is a so-called
universal application: it can run on both devices and would be presented in the App Store as such.
Unless there are specific business reasons for writing an app that only works on the iPhone or the
iPad, it makes a lot of sense to make your app universal. It will save you time down the road, even if
you only intend to release your app on one of the devices to start.
Our sample application is so simple that it may be difficult to see the differences between the four
states presented in Figure 2-1 . On the upper left, where the iPhone is in portrait orientation, the
position of the gray area is laid out differently from the iPhone in landscape at the bottom left. The
layout of the text is also different. The same goes for the application when it is running on the iPad in
landscape vs. portrait. Let's get going and understand how we can set up a project to accommodate
these different devices and orientations.
 
Search WWH ::




Custom Search