I am setting uiWebviewSocial as desired on IB and is loading requests as normal. However, later I need also to init this uiwebview in order to clear goBack history. I am using another uiwebview object for this purpose, webViewBridge
- (void)viewDidLoad
{
[super viewDidLoad];
self.webviewBridge = [[UIWebView alloc] init];
self.webviewBridge = self.webViewSocial;
when I need to init UIWebViewSocial, I use following
self.webViewSocial = nil;
self.webViewSocial = [[UIWebView alloc] init];
self.webViewSocial = self.webviewBridge;
however, if I then make goBack action, uiwebview loads an old request when should have its history empty. What I am missing? thank you
Well, I’ve been going around
UIWebViewin Stack Overflow these days and is a mess, for me at least.It seems
UIWebViewcache works at its own, I mean we cannot change neither access some info that is exclusively managed by system…About your problem, it seems although your
UIWebViewis sent to nil, it keeps getting info from cache… so, you should clear cache firstableYou can check it here and there