自定义headview不填满整个屏幕
答
它不是页眉的页眉显示。添加这些行可以解决您的问题。
-(CGFloat)tableView:(UITableView*)tableView heightForFooterInSection: (NSInteger)section
{
return 1.0;
}
-(UIView *)tableView:(UITableView*)tableView viewForFooterInSection:(NSInteger)section
{
return [[UIView alloc] initWithFrame:CGRectZero] ;
}
我编辑了你的文章,以便正确插入图像,以便更容易理解。你能提供你的代码样本,以便我们可以帮助你吗?请勿复制粘贴您的所有应用程序,请仅提供相关部分。 –