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

CHOOSING A PORTING TECHNIQUE

Now that you have seen the two techniques for porting your iPhone application to support the iPad, which technique should you adopt?

If your application does not have many UI changes when running on either the iPhone or the iPad, using the first technique (modifying the device target setting) is the easiest way to support two platforms without changing much code, and it uses a single set of XIB files. All you need to do is ensure that when the application runs on the iPad, the UI is rearranged correctly — this can be done programmatically in your View Controller or set in Interface Builder. Most developers should benefit from creating Universal applications. When you have an application that supports two different platforms, creating a Universal application enables you to have one code base with several XIB files designed specifically for the iPhone and the iPad. This technique saves you the trouble of uploading two different editions of your application to the AppStore. You need to upload just one version of your application and it will automatically support both platforms.

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