Help Adding an Activity Indicator on a tab bar application!

Discussion in 'iOS Programming' started by Patoma16, May 31, 2010.

  1. Patoma16 macrumors member

    May 19, 2010
    Please I need help. I have a tab bar app, and need to put an activity indicator. It doesn't work through the actual view controller. As a little background info, i have five view controller, each corresponding to a tab in a tab bar. They all have UIWebViews and I want an activity indicator to be displayed while they load. But, nothing I tried works. I think I should put the code in the app delegate, but the code I used didn't work, hope someone can help me, or give me the code for the app delegate activity indicator.
    Thanks in advance!
  2. TiberiusXavier macrumors member

    Apr 18, 2010
    Are you talking about the activity indicator at the top the system battery/time? Or something like centered on the current view controller?

    If the former:
    [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
    If the later, you have more work to do...
  3. Patoma16 thread starter macrumors member

    May 19, 2010
    Yep, it's the latter!
  4. Patoma16 thread starter macrumors member

    May 19, 2010
  5. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    Maybe look at some samples that use it...

Share This Page