iOS. OC. Masonry的注意地方

[self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view).with.insets(UIEdgeInsetsMake(2, 2, 2, 2));//子视图相对于父视图上,下,左,右的边缘距离
 }];

 

 [self.bgImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(self.view);
    }];

 

posted on 2024-04-26 08:54  高彰  阅读(10)  评论(0编辑  收藏  举报

导航