Building the skeleton
Having defined the requirements, let's start implementing them, splitting the implementation into auto-conclusive phases.
In the previous chapter, we implemented the app using Interface Builder to create the UI, but we mentioned that it is definitely possible to do that entirely by code.
Although Apple provides two ways to do this, either via NSLayoutConstraintss
or Visual Format Language, both are really verbose and error-prone; hence, we'll use a nice Cartography
library, which permits us to set up constraints in a declarative way without using any hardcoded strings.
Note
A description of Cartography can be found here: https://github.com/robb/Cartography.
Creating the project
In the same way we did for the previous apps, we create ...
Get Swift 2 By Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.