Search code examples
iphoneipadnibiphone-5screen-size

how many nib file I need to support iPhone 3G, iPhone 5 and iPad?


If I want to support and design with old iOS and iPhone, how many nib I may need? Will it be 3 nib, one for older iPhones, one for iPhone 5 and one for iPad? Surely I do not want the black border below for iPhone 5. I want to use the whole screen for iPhone 5.

Or is there any good work around without using 3 nibs?

What are the pros and cons to avoid 3 nibs and do everything in code? any good tips?


Solution

  • You need only 2 nib. One for iPhone and one for iPad. older iPhones and iPhone 5 it's can be on the same nib by using auto layout methods

    Introduction to Auto Layout for iOS and OS X