Nilesh
Nilesh

Reputation: 438

Simplest way to adjust UI for all iPhone sizes using xib

I am working on a iPhone app which required to be run on all iPhone sizes i.e. 4s,5,6 and 6 plus in ios 8 and above. What will be the simplest way to adjust UI to support all screen sizes. I am using Xib.

Thanks.

Upvotes: 3

Views: 260

Answers (3)

ajay_nasa
ajay_nasa

Reputation: 2298

Autoresizing is simplest way to adjust UI to support all screen sizes in portrait mode as @Nishant explained instead of using constraints in AutoLayout. But if you want adjust same UI in landscape and portrait both then use AutoLayout & Size Classes as @ezCoding explained.

Upvotes: 3

ezcoding
ezcoding

Reputation: 2994

In your storyboard make sure that you are using the Any Width | Any Height settings:

enter image description here

Also make sure to check Use AutoLayoutand Use Size Classes:

enter image description here

To understand it all take some time to read this.

Upvotes: 3

Nishant Gupta
Nishant Gupta

Reputation: 141

Check the all iphone4,5,6 & 6+ size in xib

and set the layout int his pic

you can set size here and check also..

Upvotes: 2

Related Questions