Additional Configuration Settings

The application descriptor file contains a section specific to iOS with some configuration items that are not covered by Flash Builder’s UI. There are several properties that you can set to allow your application to be configured a certain way or only be available for specific devices. A sample is shown below.

Here are the property definitions:

UIDeviceFamily

This node contains an array of strings that represent the different iOS devices. The value of 1 represents iPhone and iPod, the value of 2 represents iPad. So, if you only want your application to be installable on iPad, you would only include <string>2</string> within your iPhone descriptors. This is also configurable when you are creating the Flex Mobile application within Flash Builder 4.5. See Chapter 1 for details on creating a new Flex Mobile application.

UIStatusBarStyle

The available options for the UIStatusBarStyle are UIStatusBarStyleDefault (gray), UIStatusBarStyleBlackTranslucent (black with .5 alpha), and UIStatusBarStyleBlackOpaque (black). See Figures 3-2 and 3-3.

UIRequiresPersistentWiFi

This setting will force the WiFi connection to stay open throughout the lifetime of your application. If it is set to no (which is the default), it will close after 30 minutes.

UIApplicationExitsOnSuspend

This setting will tell iOS to either suspend your application should run in the background or quit when the user navigates away from it.

UIRequiredDeviceCapabilities

This will block the installation of ...

Get Developing iOS Applications with Flex 4.5 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.