Masonry 布局问题

2017-10-11  本文已影响12人  TsingQue
[_contentLab mas_makeConstraints:^(MASConstraintMaker *make) {
    make.left.equalTo(_titleLab.mas_right).offset(0.0f);
    make.top.equalTo(self.mas_top).offset(0.0f);
    make.right.equalTo(self.mas_right).offset(0.0f);
    make.bottom.equalTo(self.mas_bottom).offset(0.0f);
}];
[_contentLab setContentCompressionResistancePriority:200 forAxis:UILayoutConstraintAxisHorizontal];
[_contentLab setContentHuggingPriority:200 forAxis:UILayoutConstraintAxisHorizontal];
上一篇 下一篇

猜你喜欢

热点阅读