去掉UITableView风格为UITableViewStyle

2017-03-23  本文已影响0人  JXY1228

@property (nonatomic, strong) UITableView * mainTableView;

//将tableHeaderView设置非常小

UIView *headerView = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, _mainTableView.bounds.size.width, CGFLOAT_MIN)];

_mainTableView.tableHeaderView = headerView;

self.automaticallyAdjustsScrollViewInsets = NO; //禁止自动调整 ScrollView Insets

上一篇 下一篇

猜你喜欢

热点阅读