Converting iPhone xib to iPad xib?

Assume you've the SDK with Xcode 3, Open IB. Open the XIB. File -> Create iPad version using autoresizing masks.

– Pestilence Mar 21 '10 at 23:23 I don't think this works anymore under XCode4. Does it? – radven Dec 10 '10 at 0:47 It works like a charm :) – Hamutsi Mar 20 at 17:46 2 Uh... except there is no Interface Builder anymore, and no equivalent option in XCode 4 that I can find.

– Nicholas M T Elliott Mar 22 at 1:14 1 One thing that may help- if you turn off simulated interface elements you can then resize your view freely. – Peter Johnson Jul 22 at 13:54.

I was able to narrow it down to a few things, so here are the steps that worked for me: 1) Make a copy of the iPhone xib file and add it to your project 2) Right click the file (in xcode) and Open As > Source Code 3) The 2nd line should look like: Replace with: 4) Search for "IBCocoaTouchFramework" and Replace all occurrences with "IBIPadFramework" 5) Save the file and Open As > Interface Builder - iOS The file might still look like a regular iPhone xib, but for me, once I changed the Status Bar to "Black" in the Attributes inspector the rest of the xib just kind of "snapped" into an iPad xib.

1 Worked. My status bar was already black. I set it to none and back to black then it snapped to the iPad view – Thomas Oct 25 at 8:36 1 Awesome.

Definitive answer for Xcode 4. The one with all the upvotes is way outdated :) – Chris Newman Oct 28 at 17:44.

Xcode 4: The Create iPad Version Using Autosizing Masks feature has been removed from Xcode 4. Right now the easiest way is to use Xcode 3 for the conversion, since the nib (.xib) file format did not change. Xcode 3 & 4 can now be both installed on the same system by simply selecting a different folder (see installation instructions on the disk image).

Otherwise you will need to copy/paste the UI elements from the iPhone version, and re-link them to your code.

I wish I was allowed to rant about this one beta OS together with this one beta IDE :( – JustSid Jun 4 at 15:47 Xcode 4 has a way to do this. See Tejesh's answer in this same page. – Marc M Sep 2 at 14:37 would changing sizes with a text edit work?

– pqnet Sep 12 at 13:16.

XCode4: In xcode 4 we can't do that for a single xib,but we can create respective ipad versions all at once. Before configuring your project to ipad,when it is configured only for iphone, right click on target and click on duplicate. Now select "duplicate and transition to ipad".

A new target and new set of xibs are created. It should reduce some work. Hope it helps.

Open up the XIB in XCode 4 using "view as source code. " Before Back up the nib in question. One Substitute this goo IBCocoaTouchFramework com.apple.

InterfaceBuilder. CocoaTouchPlugin. IPhoneOS com.apple.

InterfaceBuilder. CocoaTouchPlugin. InterfaceBuilder3 YES 3 301 for this other goo IBIPadFramework com.apple.

InterfaceBuilder. CocoaTouchPlugin. InterfaceBuilder3 YES 3 301 Two Then, for each view in the nib using the integrated IB, delete it and then hit undo.

Three Then shower in hot water to wipe off that disgusting feeling you might have.

Note: the code is taken directly from NIBs that 1) are broken and 2) that work. – Yar Sep 12 at 15:20.

You can open the XIB as textfile and change the UIView size: Right click on your XIB file in de navigator and select: "open as..." Open as source file. Find the UIView reference and change the Frame values: {{0, 20}, {768, 1024}}.

– Peter Johnson Jun 9 at 14:14 Same thing here, I changed NSFrameSize and it has effect, but if I want to edit UI in Xcode I still see the small screen. – DixieFlatline Aug 29 at 8:59.

Sounds like the best solution is to always develop as iphone first, then once you are complete done, add the ipad target, letting xcode do the update. I made the same mistake, selected universal to start, which creates the first few files, but then every other xib had to be hand recreated in the ipad folder. Big PAIN.

Open your iPhone project and in the project properties change the line that says iPhone to iPad.

The title states that the OP is asking for XIB-file specifics. – Till Apr 12 '10 at 6:07.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions