Execute uma operação em segundo plano e atualize o thread de IU principal.
dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
dispatch_async(queue, ^{
//do your work in the background here
dispatch_async(dispatch_get_main_queue(), ^{
//tell the main UI thread here
});
});