Hide empty cells in UITableView

后端 未结 7 828
春和景丽
春和景丽 2021-01-11 12:47

I have a searchable tableview, but would like to only display the number of cells that are returned once a user starts a search. For instance, if a user types in a charecter

7条回答
  •  广开言路
    2021-01-11 13:18

    - (void) viewDidLoad
    {
      [super viewDidLoad];
     *// self.tableView.tableFooterView = [[[UIView alloc] init] autorelease];*   
      *//Since memory management is controlled by ARC now, so ignore autorelease*
      self.tableView.tableFooterView = [[UIView alloc] init] ;
    }
    

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题