How to Add Stack Views Programmatically and (almost) avoid AutoLayout

Some people don't like Interface Builder and like to code instead. Sometimes your layout is so dynamic you need to lay out in code. In either case, programmatic layout of views becomes the answer instead of auto layout. In Xcode 7 Apple introduced stack views. In an earlier post, I introduced stack views in Interface …

Auto Layout and Size Classes: The Regular Size and Lining up Buttons Evenly

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 6 plus in landscape with its odd regular width, compact height …