Reloading UITableView behind UISearchDisplayController

前端 未结 9 2132
南旧
南旧 2021-02-07 11:26

I\'ve run into this really strange phenomenon that I can\'t quite figure out. I have a UITableViewController that manages a UITableView. Pretty simple. I also have a UISearch

9条回答
  •  星月不相逢
    2021-02-07 11:43

    Fixed it..

    Add the following lines in viewDidLoad

    searchDisplayController.searchResultsTableView.delegate = self;
    searchDisplayController.searchResultsTableView.dataSource = self;
    

    That fixed it for me...

提交回复
热议问题