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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-06-2008, 12:23 PM   #1 (permalink)
Registered Member
 
Join Date: May 2008
Posts: 90
Default Displaying Activity indicator when webpage is loading...

Hello,

I'm calling this method with a YES before loading a URL to a webview and with a NO after the URL load. However since the loadRequest method is asynchronous, I'm not getting the effect I'm looking for. Basically having the networkActivityIndicator visible while the page is loading. Since this webView is loaded from a nib and pushed to the navigation controller I can't seem to find a spot in the ViewController to start/stop the networkActivityIndicator while the page loads. Any suggestions?

Code:
	[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
Thanks,
Wayne
WayneDavidDaley is offline   Reply With Quote
Old 07-06-2008, 02:00 PM   #2 (permalink)
Registered Member
 
Join Date: Jul 2008
Posts: 13
Default Re: Displaying Activity indicator when webpage is loading...

You can use the delegate method webViewDidFinishLoad (from UIWebViewDelegate) for this.
ideveloper 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying UIToolbar in a UIViewController? bonehead iPhone SDK Development 3 09-15-2010 07:04 AM
Nicely centered "Loading" spinner (activity indicator) ? bonehead iPhone SDK Development 4 09-01-2009 03:32 PM
Activity Screen on top of keyboard? javid.alimohideen iPhone SDK Development 7 01-15-2009 04:18 AM
URL Loading System Help bizkid iPhone SDK Development 2 06-27-2008 01:52 PM


» Advertisements
» Online Users: 248
14 members and 234 guests
ADY, CKAmike, Dani77, dessicant, Duncan C, HemiMG, jakerocheleau, nick.keroulis, Promo Dispenser, Punkjumper, Rudy, sacha1996, sneaky, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,231
Posts: 380,768
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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