Activity Indicator keeps spinning...

Discussion in 'iOS Development' started by cryptohax, Sep 27, 2009.

  1. cryptohax

    cryptohax Banned

    Joined:
    Sep 13, 2009
    Messages:
    44
    Likes Received:
    0
    Device:
    2G iPod touch
    Yeah, so my Activity Indicator will not stop spinning. (Even when the process is done.)

    Please Register or Log in to view images



    Anybody have this problem before?

    [OBJC] - (void)webViewDidStartLoad

    Please Register or Log in to view images

    UIWebView *)webView {
    [activityIndicator startAnimating];
    [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
    }

    - (void)webViewDidFinishLoad

    Please Register or Log in to view images

    UIWebView *)webView {
    [activityIndicator stopAnimating];
    [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
    } [/OBJC]
  2. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    Nope, I have never had that happen. Also, I'd never do up a spinner like that in IB. That just seems silly.

    Try unchecking the "Animating" box. My guess is that the activity indicator in IB is not connected to the one in your app. In other words, the one you are controlling is not on screen. And the one placed with IB is onscreen and animating as you told it to do.
  3. Noise...

    Noise... Banned

    Joined:
    Dec 21, 2008
    Messages:
    421
    Likes Received:
    1
    Device:
    3G iPod touch
    I second this.

    Are you sure you made the correct connections in Interface Builder?
  4. nirmit

    nirmit New Member

    Joined:
    Sep 26, 2009
    Messages:
    1
    Likes Received:
    0
    if it was not conneted then it will not animate on function startAnimatin.
    check that - (void)webViewDidFinishLoad

    Please Register or Log in to view images

    UIWebView *)webView is being called by printing something on gdb
  5. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    That's not true. He has it set to animate in Interface Builder.

Share This Page