Chapter 16: Running on Multiple iPlatforms and iDevices
The iOS SDK was announced to the public in February 2008. At that time, there were only two devices using it: iPhone and iPod touch. Apple has since been innovating vigorously, and in 2010 it introduced another bigger brother to the family, the iPad. In 2010, another new device running iOS was introduced: the Apple TV. Who knows what the future might hold—Apple might even announce an SDK for Apple TV development and may even enable running games from Apple TV controlled by your iPhone on iPod touch.
Every year, a new version of the SDK comes out along with at least two or three new device updates, and these new devices often come with additional sensors. The GPS sensor debuted with iPhone 3G, the magnetometer—a sensor used to show the direction of magnetic north (more commonly known as a compass)—debuted in iPhone 3GS, and the gyroscope (for life-like gameplay) in iPhone 4. The iPad was introduced later with a whole new UI, a far bigger screen than the iPhone, but without a camera. iPad added a couple of cameras (including a front-facing camera) in the second iteration, iPad 2. The iPad 2 was superceded by the new iPad, which has a better camera and features like face detection and video stabilization. Recently, Apple announced the iPhone 5, which has a larger screen than its predecessors. iPhone 5 poses another challenge in designing your user interfaces. I show you how to support iPhone 5 in your app later in this chapter. ...