udit
udit

Reputation: 2783

Autolayout constraints not working

I'm trying to follow the Autolayouts tutorial here and configured my View to have all the constraints from the tutorial yet, my actual view, when rendered, looks like crap.

Constraints: Constraints

Rendered View, Portrait: enter image description here Rendered View, Landscape: enter image description here

What am I missing? I have used UIImageViews instead of UIViews because in XCode 6 I havent found a way to set the background color on a view. But that's a whole another question.

Upvotes: 0

Views: 571

Answers (1)

chancyWu
chancyWu

Reputation: 14383

There should be a vertical constraint between the upper cat UIImageViews and the bottom UIImageView.You missed it. so they are stretched to screen height in the vertical.

Upvotes: 1

Related Questions