Reputation: 5813
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.
Upvotes: 2
Views: 125
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
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.
Upvotes: 1