3. Interface Builder Layout

Working with constraint-based design in Interface Builder (IB) can sometimes prove a frustrating experience for developers new to Auto Layout. When you work with IB, you must move away from a normal developer mindset. You can’t approach IB-based Auto Layout by asking, “Which constraints do I want to add to express my design goals?” Instead, you need to consider, “How do I modify the constraints that I’ve built and that Interface Builder has given me to achieve my design goals?”

Because IB is such an involved party in the Auto Layout process, you need to understand why it seems to “thwart” your design efforts and when it will override you on your behalf. This chapter introduces the tools and rules of IB layout, explaining ...

Get iOS Auto Layout Demystified 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.