oc 如何获得用 Masonry 约束好的宽度?
例子:
/// 怎样获取里面约束好的 45 呢?请问!! [self.choseCityBtn mas_makeConstraints:^(MASConstraintMaker *make) { make.left.equalTo(@(12)); make.width.equalTo(@(45)); make.height.equalTo(@(24)); make.centerY.equalTo(@(navCenterY)); }];
所有通过masonry加载约束,可以通过
NSArray *installedConstraints = [MASViewConstraint installedConstraintsForView:self.choseCityBtn]
一周热门 更多>