Dan Rosenstark
Dan Rosenstark

Reputation: 69757

Convert iPhone App to iPad App (Just The Easy Part)

I make a basic View-Based application for iPhone in XCode 3.2, but when I switch the emulator to the iPad, the application gets "framed" (not sure what the right term is):

iPhone App, Framed http://dl.dropbox.com/u/2652228/iphone-app-framed.png

If I adjust the width of the View(s), it has no effect. I cannot adjust the width of the "Window" in Interface Builder (it's greyed out, and adding another Window to replace it gives me another Window instance in which the size is still grayed out). How should I proceed?

Upvotes: 2

Views: 4084

Answers (2)

Saurabh Hooda
Saurabh Hooda

Reputation: 2596

If you are using Xcode 4 then:

  • Go to your Project Target Summary (Go to Project Navigator, Click on first horizontal project named row tab, then click on Targets and choose 'Summary' tab)
  • In Devices drop down choose iPad (take a look at other options in settings below if you are interested)
  • Now you can just run and see how you app will look on iPad.

Steps mentioned above are just a way to just scale your app to iPad resolution. But for a great app you might want to render app differently wrt device. You might want to code different ViewControllers for different devices.

You can read more on this here: iOS Developer Library - Creating a Universal App

Upvotes: 1

Ole Begemann
Ole Begemann

Reputation: 135548

In Xcode, choose Project -> Upgrade Current Target for iPad... And read the documentation for details. It's all described in there step by step.

Upvotes: 6

Related Questions