ringa_lee2017-04-17 16:57:35
mas_equalTo 와 equalTo의 의미 下
[self.view addSubview:btn];
[self.view addSubview:btn1];
__weak __typeof(&*self)weakSelf = 자기;
[btn mas_makeConstraints:^(MASConstraintMaker *make) {
make.size.mas_equalTo(CGSizeMake(100, 50));
make.left.equal(weakSelf.view).offset(200);
make.top.equal(weakSelf.view).offset(200);
}];
[btn1 mas_makeConstraints:^(MASConstraintMaker *make) {
make.size.mas_equalTo(CGSizeMake(100, 100));
make.left.equal(weakSelf.view).with.offset(50);
make.top.equal(weakSelf.view).width.offset(200);
}];