当tableview的组的头部和尾部的高度设置如下时:

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

    return 10;

}

/**

    组脚高度

 */

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

    return 0.1;

}

出现图片显示不正常现象如下:

由于TableView的Section的头部和尾部高度设置的不规范引起的部分Section中的图片无法正常显示

当tableview的组的头部和尾部的高度规范设置如下时:

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

    return 9.9;

}

/**

    组脚高度

 */

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

    return 0.1;

}

出现图片显示正常:

由于TableView的Section的头部和尾部高度设置的不规范引起的部分Section中的图片无法正常显示

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2021-09-17
  • 2021-10-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
相关资源
相似解决方案