Essentially, I need to know how to make a UIWebView erase everything when you terminate the app. Basically, that includes all cookies and information held by the webView through usage.
Is there any way to simply clear it so that it’s like new each time?
UIWebViewdoesn’t cache, it’s theNSURLConnectionit uses. Any of the following used to work, and follows the documentation ofNSURLCache:But I’m not sure if it does now (iOS 5). Other options are using a custom cache: SDURLCache or overriding connection:withCacheResponse:. If you find out what is the current behavior please comment.