12. Auto Layout in a New View

Chapter 11, “Building a New View,” was about creating scenes in Passer Rating. To preserve that focus, I finessed the issue of Auto Layout with a quick workaround. For the purpose of an exercise, you don’t need to do more solely for a screen the size and shape of a 4.7-inch iPhone; Passer Rating is not a professional-grade product.

You’ll need to know more sooner or later, and this chapter is a closer look at Auto Layout. You can put it off, or even skip it. I won’t know.

Note

If you attempted Auto Layout in Xcode 4, you found it was a nightmare, and I wouldn’t blame you if you were a bit phobic on the subject. It got better in Xcode 5, and much better in Xcode 6. However, the new workflow is available only if you ...

Get Xcode 6 Start to Finish: iOS and OS X Development, Second Edition 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.