Converting iPhone Xib to iPad Xib

Converting iPhone xib to iPad xib?

Assume you've the SDK with Xcode 3,

  1. Open IB.
  2. Open the XIB.
  3. File -> Create iPad version using autoresizing masks.

Xcode 4.2 , change the iPhone xib to iPad xib

I have just copied the old Xib and renamed it as ~ipad at the last. And in the source code instead of 320*480 I have replaced the iPad resolution. And my UI i.e interface builder looks like the iPad and my application is detecting the ipad xib's . Thanks for every one.

How to create iPad xib file in iPhone specific project

For automatic loading xib for iPad add ~ipad to the name of xib file.

For example:

If name of xib for iPhone version is CustomVC.xib

then for iPad version use CustomVC~ipad.xib.

When you create object of vc CustomVC *vc = [[CustomVC alloc] init]; iOS will automatically choose correct xib file depending on platform (iPhone or iPad) where application is run.

Converting iPhone XIB to iPad version with Xcode 4

This has been asked a few times, and unfortunately it seems (or rather, it's sure) that the option (Create iPad Version Using Autosizing Masks) has been removed from Xcode 4.

You will need to copy/paste the UI elements, and re-link them to your code.

OR: You are now allowed to install both Xcode 3 & 4 (simply choose a different folder to install it to). Since the nib files' format did not change, you can upgrade them in Xcode 3, and copy the converted files back into Xcode 4.

Xcode 4 .xib Create iPad Version

This worked for me:

  1. Make a copy of the .xib in the Finder.
  2. Open the copied file in a text editor.
  3. Change "com.apple.InterfaceBuilder3.CocoaTouch.XIB" to "com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB".
  4. Change all instances of "IBCocoaTouchFramework" to "IBIPadFramework".
  5. Search for sizes like {480, 320} and edit them. Or just reopen the file in Xcode and use the GUI to resize items as needed.

This also works in reverse, if you need to change an iPad xib into an iPhone xib.

How to resize the xib view of iphone application to fit to ipad in xcode

You need to make two seprate xib and manage all buttons,textfiels and add all these in New Xib...

Way To Create Ipad Xib from iphone xib....

1)First copy iphone xib and paste just change the name like ~ipad.xib give and add it to the bundle

2)now you have an 2 xib 1 is for iphone and 1 is for ipad.

3)go to ipad xib right click on in it see open as -> open it in source code and then you have to find 320,480 value search that value in source code and change into

768,1024...

that's it do this way....



Related Topics



Leave a reply



Submit