I need a way to perform a similar function like the one below, but instead of waiting 3 seconds, it waits for activity indicator to be hidden [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
. Any tips or suggestions are appreciated.
double delayInSeconds = 3.0;
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
// lines of code
});