networkActivityIndicatorVisible

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

Filed under:
|

Hi,

Is this code correct to use with the networkActivityIndicatorVisible?

  • (void)viewWillAppear:(BOOL)animated {

    [super viewWillAppear:animated];

    UIApplication* app2 = [UIApplication sharedApplication];

    app2.networkActivityIndicatorVisible = YES;

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

    app2.networkActivityIndicatorVisible = NO;

}

Teo

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode