January 2012
Beginner
655 pages
16h 35m
English
In this chapter, you have seen how to port an existing iPhone application to support both the iPhone and the iPad. In general, the Universal application approach is the recommended one, as it enables you to maintain just one code base that can target multiple platforms.
EXERCISES
Answers to the exercises can be found in Appendix D.
WHAT YOU LEARNED IN THIS CHAPTER
| TOPIC | KEY CONCEPTS |
| Supporting an application natively on the iPhone and iPad | Change the Devices item in the Summary tab of your project to Universal. Alternatively, modify the Targeted Device Family Setting of the project in Xcode, setting it to iPhone/iPad. |
| Detecting the device programmatically | Use the UI_USER_INTERFACE_IDIOM() function. |
| Creating a Universal application | Choose the Universal option in the Targeted Device Family setting when creating your new Xcode project. |