标签:
- (void)setBounds:(CGRect)bounds {
[super setBounds:bounds];
if (bounds.size.width != self.preferredMaxLayoutWidth) {
self.preferredMaxLayoutWidth = self.bounds.size.width;
[self setNeedsUpdateConstraints];
}
}
标签:
原文地址:http://www.cnblogs.com/03-06-hanwei/p/5420766.html