tableview,如果数据量少时,会出现很多横线,为此添加footview,就可以去掉多余的横线。

CGRect theFooterRect = theRect;

    theFooterRect.size.height -= 46;
    UIView * newFooterView = [[UIView alloc] initWithFrame:theFooterRect];
    self.tableView.tableFooterView = newFooterView;
    [newFooterView release];

相关文章:

  • 2021-08-19
  • 2021-06-26
  • 2021-08-22
  • 2022-01-02
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2021-09-25
相关资源
相似解决方案