I\'m having a problem implementing UIRefreshControl - in that when you pull down, the \'blob\' works perfectly fine and the refresh spinner works fine, but the tableView doesn\'
You can change to following
- (void)refreshView:(UIRefreshControl *)refresh {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
// (...code to get new data here...)
dispatch_async(dispatch_get_main_queue(), ^{
//any UI refresh
[self.refreshControl endRefreshing];
});
});
}
-refreshView: will get called on the main thread, and all UI updates are using the main thread. So if you use the main thread for "code to get new data" it will "stuck"