My iPhone app has an Info page, which contains a UIWebView, which I have pointed at my website's info page:
NSString *urlAddress = @"http://www.toneme.org/Software";
NSURL *url = [NSURL URLWithString: urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL: url];
[self.webView loadRequest:requestObj];
However, every time the user loads the app they will get a blank screen for ages until it fetches the data. This is not good.
It would be far better to display the last page loaded, whilst trying to fetch a new version in the background. But I can't see how to do this cleanly. could somebody get me started?
A second question: for the iPhone it is not practical to display this webpage in a UIWebView, as the webpage contains three panes; the whole thing just won't fit. I really want to extract the text from the page. Is there any clean way of doing this? Can I specify that I only want to download the main body?
I'm guessing the whole page gets returned as a single string, so maybe if I fit a couple of homemade tags around my text, this would simplify extracting the text manually...