[tableView reloadData]; doesn't work until I scroll the tableView

后端 未结 5 1903
南方客
南方客 2021-02-01 18:57

I have a simple app that downloads search results in XML when the user types in a UISearchBar. The download+parsing is threaded and once done it fires an NSNo

5条回答
  •  渐次进展
    2021-02-01 19:26

    Call

    [self.tableView performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:NO];
    

    instead of

    [self.tableview reloadData]
    

提交回复
热议问题