Reloading UITableView behind UISearchDisplayController

前端 未结 9 2111
南旧
南旧 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:51

    My solution was to avoid reloading the table if search results were displaying, then reloading any time the search results were dismissed.

    I had to set a symbolic breakpoint on UITableView reloadData to find all the calls to reload that were causing the section headers to redraw on top of the search table.

提交回复
热议问题