Monday, August 16, 2010

Make a Universal App From an iPhone App

I was trying to figure out what makes a Universal application tick, because I wanted the easiest way to switch mine over. Here it is:

  1. In the build settings for the project, switch Targeted Device Family to iPhone/iPad
  2. Optional: if you want to use different initial NIBs for the two devices, add this to your application's plist file:

Then you can adjust anything you want differentially using

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) 

It might be worth noting that right now the iPad can only do up to 3.2 at this time.

What about the default.png? See here for how to include images for the iPad: it's basically manual.

No comments: