Here i have load the content in the uiwebview using
[webView loadHTMLString:[theApp.contentArr objectAtIndex:spineIndex] baseURL:url];
after going back and come i need to clear the cache
here i have tried these kinds of methods to clear the cache:
[webView stringByEvaluatingJavaScriptFromString:@"document.body.innerHTML = \"\";"];
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"about:blank"]]];
// remove all cached responses
[[NSURLCache sharedURLCache] removeAllCachedResponses];
// set an empty cache
NSURLCache *sharedCache = [[NSURLCache alloc] initWithMemoryCapacity:0 diskCapacity:0 diskPath:nil];
[NSURLCache setSharedURLCache:sharedCache];
but no use, what is the solution for this.....
Use -
Easy way :