it doesn't hide label if I call inside dispatch blocks:
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
//Here your non-main thread.
[self.loading setHidden:NO];
dispatch_async(dispatch_get_main_queue(), ^{
//Here you returns to main thread.
[self.loading setHidden:NO];
});
});
This works, but still not hiding:
[self.loading setHidden:NO];
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
//Here your non-main thread.
dispatch_async(dispatch_get_main_queue(), ^{
//Here you returns to main thread.
[self.loading setHidden:NO];
});
});
How can I access to IBOutlets inside blocks?