美文网首页
iphonex 的表示图全屏

iphonex 的表示图全屏

作者: 赤焰军少帅林殊 | 来源:发表于2017-12-08 15:47 被阅读17次
  • (UITableView *)tableView
    {
    if (!_tableView) {
    UITableView *tableView = [[UITableView alloc] init];
    tableView.backgroundColor = [UIColor colorWithHex:0xececec];
    tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    tableView.tableFooterView = [UIView new];
    tableView.delegate = self;
    tableView.dataSource = self;
    [tableView registerClass:[WarmCell class] forCellReuseIdentifier:WarmCellIdentifier];
    [self.view addSubview:tableView];
    [self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
    make.edges.equalTo(self.view).insets(UIEdgeInsetsMake(0,0,0,0));
    }];
    self.tableView.hidden = YES;

      _tableView = tableView;
    

    }

    return _tableView;
    }

相关文章

网友评论

      本文标题:iphonex 的表示图全屏

      本文链接:https://www.haomeiwen.com/subject/exweixtx.html