Bryan Hanson
Bryan Hanson

Reputation: 6213

Does autolayout mean I don't need separate iPhone and iPad xibs?

This is a really simple question, but I can't find a clear statement yea or nay. I'm converting an app to iOS7. The current app has separate xibs for iPhone and iPad. I see that autolayout can handle different size iPhone screens and device rotation in a simpler way than previous approaches. But, does autolayout mean I no longer need separate xibs for each device? My guess is yes, but the documentation and tutorials I've looked at don't explicitly say it's possible. I'm using xcode 5.

Upvotes: 1

Views: 149

Answers (1)

Jef
Jef

Reputation: 4728

It can mean that yes, but not necessarily..

Usually most developers will want to use the iPad's extra pixels for more than 'just draw all the same stuff as on iPhone, only bigger' but if that's all you need then you could do it all with a shared nib and autolayout or indeed with the older autoresizingmasks...

Upvotes: 1

Related Questions