Posted on November 25, 2015
by Steven Lipton
2 Comments
Suppose you have a project with adaptive layout, but you hate storyboards. You’ve coded all your layout and then find something horrible: it only codes well in portrait on an iPhone. You’ve decided that some of the elements need to be in a different… Continue Reading “Using Trait Collections for Auto Layout and Size Classes”
Category: Auto Layout and Size Classes, GUI, iOS9, Swift Programming, Swift Swift, TutorialTags: changing layout, compact, compact size class, constant, constraint outlets, constraints, outlets, programatically, regualr size classs, Regular, size class, UITraitCollection
Posted on December 19, 2014
by Steven Lipton
2 Comments
In the conclusion of our series on auto layout, we’ll discuss the regular size for iPads and one side of the iPhone 6 plus. We’ll make a line of evenly spaced buttons using auto layout, first for the iPad, then again for the iPhone… Continue Reading “Auto Layout and Size Classes: The Regular Size and Lining up Buttons Evenly”
Category: Auto Layout and Size Classes, Swift Swift, TutorialTags: aligning buttons, Auto Layout, autolayout, even sized buttons., iPad, iphone 6 plus, regualr size classs, Regular, Size classes