Skip to content

Instantly share code, notes, and snippets.

@pratikshabhisikar
Created July 26, 2012 09:15
Show Gist options
  • Save pratikshabhisikar/3181155 to your computer and use it in GitHub Desktop.
Save pratikshabhisikar/3181155 to your computer and use it in GitHub Desktop.
// Fetch list of places from the GooglePlaces.plist file present in the bundle.
dispatch_queue_t aQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
dispatch_async(aQueue, ^{
// Perform some task...
dispatch_async(dispatch_get_main_queue(), ^{
[self.tableView reloadData];
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment