Category: Auto Layout and Size Classes
-
The Safe Area: Layout and iPhone X
iOS Development Tips Weekly is a series you can find at the Lynda.com and LinkedIn Learning libraries. You can find the start project here on GitHub iOS Developer’s Weekly: Layout and iPhone X With the introduction of the iPhone X, you get that full screen, but the notch gets in the way. To get around…
-
This Old App: Update to Xcode 9
A few months ago, Apple threw out my app Interval Runcalc for being too old. While it wasn’t the most innovative, complex or profitable, it was an app I used frequently myself. It was a calculator for time, pace and distance for running not only for straight runs but for the run/walk/run community who use multiple-speed…
-
The Step by Step Guide to Custom Presentation Controllers
Ever wanted that sliding sidebar or an alert with a image picker? Apple has many great ways of presenting view controllers, but sometimes we want something different, something new. For that we subclass UIPresentationController. However there’s a few concepts that you’ll need to wrap your head around first. In this lesson we’ll create a few…
-
Using Trait Collections for Auto Layout and Size Classes
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 place in portrait and completely different places on an iPad. In…
-
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…