UITableViewDataSource方法,默认实现



对于

(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section

如果我想在我的视图中为某些tableview实现它,而不是其他tableview,是否有方法返回默认实现?TIA

是。返回super的实现。

if (tableView == myTableView) {
  // create and return your custom header
}
else {
  return [super tableView:tableView viewForHeaderInSection:section];
}

最新更新