rskokan / MMNotes

3 stars 0 forks source link

Clear cache of my UIWebView #48

Closed rskokan closed 12 years ago

rskokan commented 12 years ago

Problem: e.g. the user guide is cached (this time with missing images) and the UIWebView doesn;t reload it.

Solution: perhaps something like http://stackoverflow.com/questions/2523435/how-to-clear-uiwebview-cache

rskokan commented 12 years ago

Changed to [NSURLRequest requestWithURL:requestURL cachePolicy:NSURLRequestReloadRevalidatingCacheData timeoutInterval:60]

NSURLRequestReloadRevalidatingCacheData Specifies that the existing cache data may be used provided the origin source confirms its validity, otherwise the URL is loaded from the origin source.

rskokan commented 12 years ago

In the end I have completely abandoned using the UIWebView because of weird behavior when rotating.

Now the user guide and discussion forum are opened in external browser: [[UIApplication sharedApplication] openURL:requestURL]