Trying auto layout using interface builder with ImageView


#1

I tried using interface builder to apply constraint on a imageView built using drag and drop method. However, it doesn’t work as expected like the one in the book where the constraint is apply using code. The constraint I set up visually is totally identical to the one written using code. However when there’s an image and i rotate the screen, the position of every single view in the screen goes haywire. Please help.