I am using currently Xcode 4.3.2. I have developed a tiny application and specified ‘Universal’ for the target, and I see two .xib files are generated. One is for iPhone, and the other is for iPad. I have designed minimum UI with iPhone .xib, and now would like to use the same application for iPad also.
1) Do I have to again design iPad.xib, as I designed iPhone.xib?.
2) As for as I understand ‘Universal’ means for both?. If so, then why are two different .xib files provided?
How do I make my application run on iPad as well, with minimal changes?
universal means that the bits of the application can be executed on the two architectures (iPhone and iPad), It is not related to nib files, you have 2 options:
1) use the same iphone nib file and than tap (2x) on the bottom left of the screen when iPad simulator is launched, which is not an appropriate way.
2) the best way is to do two separate nib files, each for a certain device.