tableviewstylegroup下的奇葩bug:第一个se
2018-05-11 本文已影响12人
785ac245e5c9
重现:在设置了tableview的tableHeaderView后,第一个section的sectionview不显示
去cocoachina看了下得到解决方案
以下写法错误
// _tableView.sectionHeaderHeight = 60;
需要这样写
- (CGFloat)tableView:(UITableView *)tableViewheightForHeaderInSection:(NSInteger)section{
return 60;
}
BUG竟然解决了真是不可思议