Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Same xib for iPhone4 and iPhone5 possible?

Tags:

xib

iphone-5

Is there any way I can design my classes for both iPhone4 and iPhone5 using the same xib?

like image 466
Ambili B Menon Avatar asked Oct 03 '12 05:10

Ambili B Menon


1 Answers

Yes, you can use the same XIB to design for iPhone 4 and iPhone 5 by using Auto-Layout.

Build an app using iOS 6 as the Base SDK and use the Auto Layout feature to make screens that can scale for all type of screens. You'll need Xcode 4.5 to do this.

Get started with Auto Layout here:
http://www.raywenderlich.com/20881/beginning-auto-layout-part-1-of-2
http://www.raywenderlich.com/20897/beginning-auto-layout-part-2-of-2

like image 93
Bijoy Thangaraj Avatar answered Dec 06 '22 13:12

Bijoy Thangaraj