防止tableview下移

来源:互联网 发布:c语言 stdio.h 编辑:程序博客网 时间:2024/06/03 22:01

-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{

 if (section==0) {

  //return 0;

  return section ==0?0.1f:8.0f;

 }

 return 0.5;

}

原创粉丝点击