Pseudo code
pageUrl = "http://www.google.com"
if(pageUrl == never Downloaded)
Download pageUrl
else
{
Display Saved Version
Mean while download pageUrl
When done display new version
}
How can I do something like this in objective C for a UIWebview? Also what's the best way to save web pages for this scenario? PList, SQLite?
Plist is the best way to solve your problem. iPhone/Objective-c can access very quickly to plist file as compare to SQLite Database.
Let me give you some sample code.
See - edit After some time.
Edit :
IBOutlet UIWebView *wView;
Steps for adding Property list file to your project
Now place following code to "yourProjNameViewController.m" file.
`