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

View Single Post
Old 10-10-2010, 05:37 PM   #3 (permalink)
JosephTheTechie
Registered Member
 
Join Date: Oct 2010
Posts: 1
JosephTheTechie is on a distinguished road
Default A better way

Quote:
Originally Posted by Marco View Post
I moved the code in the - (void)viewWillAppearBOOL)animated {} and its now refreshing the page every time. I am assuming this is the best way of doing this?
A slightly better way is to use:

- (void)viewWillAppearBOOL)animated {
[webView reload];
... //if you assign delegate, make sure it's after reload line.
}
JosephTheTechie is offline   Reply With Quote
 

» Advertisements
» Online Users: 429
15 members and 414 guests
Chickenrig, dobry, Domele, EvilElf, flamingliquid, Gaz, hrushikeshaddon, iconomania, ipodphone, jaychoupham, linkmx, raymng, santicarlo, Techknol, TunaNugget
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,589
Threads: 94,083
Posts: 402,776
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Techknol
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:55 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.