Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials > Tutorial Requests

Reply
 
LinkBack Thread Tools Display Modes
Old 07-12-2010, 02:11 AM   #1 (permalink)
New to the SDK
 
franzwarning's Avatar
 
Join Date: Jul 2010
Location: Portland, Oregon
Age: 19
Posts: 165
franzwarning is on a distinguished road
Send a message via AIM to franzwarning Send a message via Skype™ to franzwarning
Default ActivityIndicator In the Status Bar

Can someone explain how to do this?
franzwarning is offline   Reply With Quote
Old 07-16-2010, 10:00 PM   #2 (permalink)
Registered Member
 
TheZimm's Avatar
 
Join Date: Mar 2009
Posts: 10
TheZimm is on a distinguished road
Default

In the UIApplication class, set the networkActivityIndicatorVisible property to YES to show it and NO to hide it.
TheZimm is offline   Reply With Quote
Old 07-21-2010, 12:58 PM   #3 (permalink)
14 Year Old iOS Developer
 
H4CK3R's Avatar
 
Join Date: Jun 2010
Age: 16
Posts: 73
H4CK3R is on a distinguished road
Default

You most set the webViews delegate (can be done in interface builder) to the file this code is in. (AppDelegate if window based app and ViewController if view based)
Code:
-(void)webViewDidStartLoad:(UIWebView *)webView {
	[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
}

-(void)webViewDidFinishLoad:(UIWebView *)webView {
	[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
}

- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
	[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
}

Last edited by H4CK3R; 07-21-2010 at 01:00 PM.
H4CK3R is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 175,696
Threads: 94,139
Posts: 402,961
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jasper_muc
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:02 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0