I am working on chapter 8, but having problems with the constrains. I followed the book’s instruction to select the background, and added constrains, but nothing changed at all. What did I do wrong?
I am working on chapter 8, but having problems with the constrains. I followed the book’s instruction to select the background, and added constrains, but nothing changed at all. What did I do wrong?
Your background is sitting in the same UIView as the rest of your UI objects

It should be in it’s own UIView, - the other objects are embedded in a different UIView

Currently you have the constraints you set on the NEW container view applied to your UIImageView (background image)
See page 165:

The fix would be to do the above Embed In, making sure Background is not in that group. ![]()
Cheers!
Rebecca
This topic was automatically closed after 166 days. New replies are no longer allowed.