1
[self.view addSubview:titleLable];
[titleLable mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(@120);
make.left.mas_equalTo(@50);
make.right.mas_equalTo(@-50);
}];
2
[self.view addSubview:btn];
[btn mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(titleLable.mas_bottom).offset(20);
make.left.mas_equalTo(@50);
make.right.mas_equalTo(@-50);
}];
3
[titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(@0);
make.bottom.mas_equalTo(@0);
make.left.mas_equalTo(picBtn.mas_right).offset(10);
}];
4
[divideLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.mas_equalTo(@10);
make.top.mas_equalTo(addressDetailLabel.mas_bottom).offset(10);
make.right.mas_equalTo(@-10);
make.height.mas_equalTo(@2);
}];
5
[arrowView mas_makeConstraints:^(MASConstraintMaker *make) {
make.height.mas_equalTo(@kArrowWH);
make.right.mas_equalTo(@0);
make.width.mas_equalTo(@kArrowWH);
make.centerY.mas_equalTo(weakSelf);
}];
6
__weak typeof (self)weakSelf = self;