self.tableView reloadData not working after successful call in AFNetworking

后端 未结 2 1856
迷失自我
迷失自我 2020-12-19 03:11

I have a class that runs similar to the AFHTTPSessionManager component of this tutorial http://www.raywenderlich.com/59255/afnetworking-2-0-tutorial

However, [self.t

相关标签:
2条回答
  • 2020-12-19 03:27

    write the [self.tableView reloadData];in the main queue.

    dispatch_sync(dispatch_get_main_queue(), ^{
        [self.tableView reloadData];
    });
    
    0 讨论(0)
  • 2020-12-19 03:38

    Always reload on the main queue:

    dispatch_async(dispatch_get_main_queue(), ^{
        [self.tableView reloadData];
    });
    
    0 讨论(0)
提交回复
热议问题