Skip to Content
Beginning iOS 5 Application Development
book

Beginning iOS 5 Application Development

by Wei-Meng Lee
January 2012
Beginner content levelBeginner
655 pages
16h 35m
English
Wrox
Content preview from Beginning iOS 5 Application Development

SUMMARY

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

  1. What function enables you to determine the device platform on which your application is currently running?
  2. What are the different values available for the Targeted Device Family setting in your Xcode project?

    Answers to the exercises can be found in Appendix D.

image 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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering iOS 12 Programming - Third Edition

Mastering iOS 12 Programming - Third Edition

Donny Wals
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9781118144251Purchase book