Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Patoma16

macrumors member
Original poster
May 19, 2010
45
0
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!
 
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:
Code:
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;

If the later, you have more work to do...
 
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:
Code:
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;

If the later, you have more work to do...

Yep, it's the latter!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.