Why is this auto-detection specification not enough?

I am trying to get rid of these annoying warnings in Interface Builder, but I don’t understand what it is complaining about (the whole Interface Builder, no code):

Sceenshot from Xcode - Interface Builder

I indicated a fixed fixed height and fixed distances to the right and top.

Still a warning tells me

Needs Constraints for: Y position, height Needs Constraints for: X position, width 

Can someone explain how these limitations are not enough?

Edit
In addition, when using the "automatically" add commands, it does nothing and errors remain.

+6
source share
1 answer

I would suspect that the supervisor is not tied to size in the interface builder. Autolayout's limitations seem to solve everything at the same time, and an error message that looks like it refers to one view can just as easily relate to another view in relation.

What - (NSArray *)constraintsAffectingLayoutForAxis:(UILayoutConstraintAxis)axis tells you?

+1
source

Source: https://habr.com/ru/post/952546/


All Articles