Objective-C: Asynchronously populate UITableView - how to do this?

前端 未结 3 1956
心在旅途
心在旅途 2020-12-07 10:06

I can\'t seem to find any info on this question, so I thought I\'d ask the community.

Basically, I have a UITableView and I want to show an activity indicator while

3条回答
  •  孤街浪徒
    2020-12-07 10:59

    I tried NWCoder's solution, and it didn't work because its calling the wrong method. This is what i used.
    [self.tableView performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:NO];

提交回复
热议问题