调整 masonry 布局,使用 leading/trailing 替代全部 left/right

This commit is contained in:
eggmanQQQ
2024-07-30 20:16:21 +08:00
parent a4c3327c29
commit ba06b327a5
33 changed files with 223 additions and 606 deletions

View File

@@ -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);
}];
}