4
votes

I just completed one app in iPhone, now I wants to create same app for both iPhone and iPad.

I am new in iPhone, So don't know exact what to do?

1) create the new project and select Universal option, and copy paste all code

2) modify this app for both.

How to add xib for iPad?

enter image description here

thanks

3
You can do either , modify it for ipad coz d iphone one is already made rite.... - IronManGill
@TejeshwarGill. thanks for reply. I know detect device on run time. but how i can add xib for iPad in current project? - QueueOverFlow
sorry typing mistake. for iPad - QueueOverFlow
Ok go to ur Project-> New File ->User Interface->New-> Iphone/IPad... choose accordingly... - IronManGill
i add the screen shot. i not find the Project-> New File ->User Interface->New-> Iphone/IPad - QueueOverFlow

3 Answers

4
votes

Maybe this blog post gives you a quick overview, when you want to convert. Otherwise you can create a new project, of course, and copy your code.

1
votes

You are correct,

  1. Select the Universal option.

  2. Transfer code from the existing iPhone project to the new project. NOW,

  3. Make the xib files for iPad, and make the connections (IBOutlets).

  4. Wherever you need platform specific features (eg. Popover, Split ViewController etc for iPad), put an IF statement to handle the device specific features.

0
votes

Select View From User Interface Option after that choose iPad from Device Family. This will create Xib for iPad.And then in Files Owner connect your class.