networkActivityIndicatorVisible on iOS 4

Posted by user365660 on Stack Overflow See other posts from Stack Overflow or by user365660
Published on 2010-06-13T12:19:29Z Indexed on 2010/06/13 12:22 UTC
Read the original article Hit count: 684

Filed under:
|
|

Hi,

I just downloaded xcode 3.2.3 (seperate directory installation) and ios 4 to my iphone.

I'm having a problem with networkActivityIndicatorVisible.

This works on 3.1.3, both phone and simulator. My code is

  • (void)viewWillAppear:(BOOL)animated {

    [super viewWillAppear:animated];

    UIApplication* app2 = [UIApplication sharedApplication];

    app2.networkActivityIndicatorVisible = YES;

    [self loadSources]; // Loads data in table view

    app2.networkActivityIndicatorVisible = NO;

}

I get the same effect in the simulator and on the phone both with ios 4.o

The networkActivity indicator becomes visible for a fraction of a second and then invisible and this is done after loading the data for the tableView.

Has something changed with this?

Teo

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode