dispatch_async(
dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)
, ^{
.....
dispatch_async(dispatch_get_main_queue(), ^{
[self createData];
NSIndexSet *index = [NSIndexSet indexSetWithIndex:1];
[_tableView reloadSections:index withRowAnimation:UITableViewRowAnimationNone];
});
});
回到主线程更新tableview,否则更新很不及时
来源:https://www.cnblogs.com/ios-wyh/p/4301780.html