UITableViewHeightForHeaderInSect

2016-12-04  本文已影响76人  masuyan

return 0.1;//如果为return 0;不是说返回的值是0,而是默认的值,可能是10

//段头高度
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{     
  if (section == 1) {      
  return 0.1;//如果为return 0;不是说返回的值是0,而是默认的值,可能是10, 
   }   
 return 5;
}
上一篇 下一篇

猜你喜欢

热点阅读