O'Reilly logo

iOS Auto Layout Demystified by Erica Sadun

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

5. Debugging Constraints

So, you have taken the plunge and added constraints to your project. Now, things either don’t work the way you expect or you are seeing dreaded errors about conflicting constraints. Constraints can be maddeningly opaque. The code and interface files you create them with don’t lend themselves to easy perusal. It takes only a few “helpful” Xcode log messages to make some developers start pulling out their hair. This chapter dedicates itself to shining light upon the lowly constraint.

You’re about to dive into varied and exhaustive ways to read logs and explore constraints more manageably. Helper functions will make your code more debugger-friendly and minimize time spent diagnosing layout issues. You’ll find ideas that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required