Show & Hide Loading/Processing Indicator in iPhone App
July 17, 2011 5 Comments
To show the loading or processing indicator in your iPhone Application just add this line:
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
and to hide the loading indicator use the same with changing YES to NO, like this:
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
You will need to use this feature normally when you are processing something in background using thread(I will try to write about thread later Inshallah) and you want user to know that something is going on in background.