Simple question that would be fantastic if somebody could answer.
I have a simple UIWebView used to log in to a certain service. However, when I reload the application, it stays logged in. What I need to be able to do is create the UIWebView like new each and every time the application starts. I’m not sure if there is an option somewhere in the interface builder, or perhaps a method of some kind I can place in the method that gets called when the app terminates, so that it releases the WebView or something.
What you need to do is not save the cache of the UIwebView. You can do this with a simple code like:
Place the code in the UIwebview code.
Or in ApplicationDidFinishLoad (or something like that, haha) you can remove the cache with:
Edit:
You’ve asked something in the comments. You can do something like the code below:
Ok,
Remove a specific request
Or delete al cookies from the UIWebView
Good luck,
Nathan