Rawan
Rawan

Reputation: 1639

Can I use size classes in xib file in IOS 8.1?

My app is a universal app, i.e. the app is for iPhone_portrait and iPad_landscape.

I searched a lot about how to deal with iPhone and iPad, and I found that I can make my add adaptive using size classes, especially after IOS 8 size classes

my question is :

  1. Is this solution is a the best one, even if the design wan't simple?
  2. I have a lot of xib files in my app. Can I use size classes in this case? Or I need two xib one for iPhone, one for iPad?

thanks.

Upvotes: 1

Views: 1439

Answers (1)

Nitin Gohel
Nitin Gohel

Reputation: 49730

Yes you can use size class and AutoLayout. see the following screen shot there is tick mark on right side in File inspector.

enter image description here

Upvotes: 4

Related Questions