Advertisement
Guest User

Untitled

a guest
Aug 6th, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.     dispatch_async(dispatch_get_global_queue(0, 0), ^{
  3.             // Instead of sleeping, I do a webrequest here.
  4.             [NSThread sleepForTimeInterval: 5];
  5.  
  6.             dispatch_async(dispatch_get_main_queue(), ^{
  7.                 [tableView reloadData];
  8.                 [self.refreshControl endRefreshing];
  9.             });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement