The iOS family consists of three devices: iPhone, iPod touch , and iPad. When developing for iOS, you must state the devices that you are specifically targeting. Your choice will dictate how your app is run by each of the three.
This recipe will take you through the necessary steps required to create an app that targets the entire family.
An FLA has been provided as a starting point for this recipe. Open chapter8\recipe1\recipe.fla
from the book's accompanying code bundle.
Sitting on the stage is a dynamic text field with an instance name of output
. We will use this text field to report which device your app is currently being run on.
For the avoidance of doubt, this recipe will not take advantage of the Retina display resolution of the iPhone 4/4S and fourth-generation iPod touch. If you would like to provide Retina support, then refer to this chapter's Targeting the Retina display recipe.