我现在已经玩了近一天这个问题了,我不知道还能做些什么。
我在UIScrollView中嵌入了UITableView。 UITableView是它的tableHeaderView,它是空的,我想摆脱它。
我试过了:
tableView.tableHeaderView = nil;
tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
答案 0 :(得分:0)
将代码改为tableHeaderView
和tableView.beginUpdates()
中的tableHeaderView.endUpdates()
属性。
答案 1 :(得分:-1)
在代码中找到以下方法并将其删除:
– tableView:viewForHeaderInSection:
– tableView:heightForHeaderInSection:
– tableView:estimatedHeightForHeaderInSection:
– tableView:willDisplayHeaderView:forSection: