重现:在设置了tableview的tableHeaderView后,第一个section的sectionview不显示
去cocoachina看了下得到解决方案
以下写法错误
// _tableView.sectionHeaderHeight = 60;
需要这样写
- (CGFloat)tableView:(UITableView *)tableViewheightForHeaderInSection:(NSInteger)section{
return 60;
}
BUG竟然解决了真是不可思议
网友评论