What We’ve Learned

In this chapter, we’ve gotten out of the playground and into real app development. We created a new project in Xcode and looked at how its various parts are organized in the Xcode window.

Next, we turned our attention to the user interface, since the best practice for iOS development is to start with the UI and then build out the logic and behavior behind it. Our UI is absolutely barebones at this point, but even this is enough to make us come to grips with the differing sizes and shapes of iOS devices, and what happens when the user rotates the iPad or iPhone. To deal with this, we applied autolayout constraints to our UI elements, so they put themselves in sensible places depending on how much room they have to work with. ...

Get iOS 9 SDK Development 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.