Network activity indicator hidden in simulator

Yesterday I encountered this little nuisance, using Xcode 3.1.2 and firmware version 2.2.1. The following code snippet can be used to show and hide the network activity indicator in the status bar, yet when being run in the simulator it doesn’t work. When deployed to a device, the indicator is shown (and hidden afterwards).

Can’t really think of a valid reason why the indicator wouldn’t work on the simulator except that it is a bug, since I’ve made no changes to the code. I’ll have to see if it is a specific firmware 2.2.1 issue.

// Show network activity indicator
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
 
// Hide network activity indicator
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;

Tags: ,

One Response to “Network activity indicator hidden in simulator”

  1. IgorD says:

    Just discoverd this myself. Googling for it I stubled upon your blog.

Leave a Reply