header通过下面两个代理方法设置 - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section footer通过下面两个 - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section 如果要做整个tableview的header和footer,要通过tableview setHeaderView 或者 setFooterView
UITableview中的headview和footview怎么用
最新推荐文章于 2024-06-03 20:40:15 发布