ragnarius
ragnarius

Reputation: 5813

Can I do this with autolayout/size classes?

Can I do this with autolayout and size-classes in xcode 6 , and, if so, how do I accomplish it ?

The view should have aspect ratio 7:6 and the 4 buttons should appear as is shown in below.

enter image description here

Upvotes: 2

Views: 125

Answers (2)

Ghostnars
Ghostnars

Reputation: 81

https://www.youtube.com/watch?v=p5wD8dvSDbM its very easy, see the video :) Only you can do in iphone, for ipad no identify landscape or portrait orientation

Upvotes: 2

InkGolem
InkGolem

Reputation: 2762

Size classes are not based on a specific size (i.e. < 300 pts == compact), but rather devices and specific orientations. Because of that, you won't have the fine grained control I assume you want.

However, if you're okay giving up some control, you simply change the simulated size class in interface builder, setup your constraints, and they just work at run-time.

enter image description here

Upvotes: 1

Related Questions