Posted By

funkypanda on 03/03/10


Tagged

Objective-c iphone statusbar


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

umang_nine


Hide and show activity indicator in statusbar


 / Published in: Objective C
 

URL: http://getsetgames.com/2009/12/16/iphonedev-advent-tip-16-how-to-show-the-network-activity-indicator/

How to show and hide the activity indicator in the statusbar (hey no... it's not managed by the system !).

It's supposed to be used when the app is performing network connection.

  1. // Show it
  2. [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
  3.  
  4. // Hide it
  5. [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
  6.  
  7.  
  8. // That's it ! ;)

Report this snippet  

You need to login to post a comment.