调整 masonry 布局,使用 leading/trailing 替代全部 left/right
This commit is contained in:
@@ -826,7 +826,7 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
|
||||
[self.view addSubview:self.exitGameButton];
|
||||
[self.exitGameButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.mas_equalTo(self.stageView.mas_bottom).offset(10);
|
||||
make.left.mas_equalTo(self.view).offset(12);
|
||||
make.leading.mas_equalTo(self.view).offset(12);
|
||||
make.width.height.equalTo(@21);
|
||||
}];
|
||||
}
|
||||
|
Reference in New Issue
Block a user