美文网首页
UITableViewHeightForHeaderInSect

UITableViewHeightForHeaderInSect

作者: masuyan | 来源:发表于2016-12-04 20:52 被阅读76次

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;
}

相关文章

网友评论

      本文标题:UITableViewHeightForHeaderInSect

      本文链接:https://www.haomeiwen.com/subject/rhohmttx.html