Ambiguity with two inequality constraints
问题 I want to have the bottom view be at least 20 away from both the image and the label above it. The label is multiline, so it can be taller or shorter than the image view, depending on how much text there is. When I add two "distance to nearest neighbour >= 20" constraints like shown in the screenshot, Xcode tells me constraints are ambiguous. How do I fix it? 回答1: I think you can do it like this, if I understand your requirements: The image view has a fixed width and height, and constraints