为什么我设置UILabel的前导,顶部,尾随约束,Label约束仍然超出约束?

时间:2015-10-21 14:13:22

标签: ios objective-c autolayout

[self addConstraint:[self.statusLabel.leadingAnchor constraintEqualToAnchor:self.avatar.leadingAnchor constant:0]];
[self addConstraint:[self.statusLabel.topAnchor constraintEqualToAnchor:self.avatar.bottomAnchor constant:10 priority:999]];
[self addConstraint:[self.statusLabel.trailingAnchor constraintEqualToAnchor:self.trailingAnchor constant:-10]];

这是视图调试器快照

This is the view debugger snapshot

0 个答案:

没有答案