Hi i am beginner in objective C. I have an ActivityIndicator in my project.
UIActivityIndicatorView *loading = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
[loading setCenter:CGPointMake(450,400)];
[loading setColor:[UIColor blackColor]];
[self.view addSubview:loading];
Is it possible to stopAnimating this activity indicator after some specific time using Thread?
UIActivityIndicatorViewanimating from another thread?loading performSelector:@selector(stopAnimating) withObject:nil afterDelay:1];.afterDelay:1loadingcall methodstopAnimatingafter 1 second. You can change 1 to another number for different delay. For more information, you can take a look at this developer.apple.com/documentation/objectivec/nsobject/…