iOS init UIWebView to clear navigation history

后端 未结 3 1142
面向向阳花
面向向阳花 2021-01-24 12:30

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 a

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-24 13:26

    If I am not misunderstanding, when you load the view you get an "initial" webviewSocial (with history and contents??), then after some loadings you make in the UIWebView, these are stored as history in webviewBridge, isn't it? When you send webviewSocial to nil, that shall be empty... but NOT webviewBridge... and then if you are reloading webviewSocial with webviewBridge (which in fact is previous whole history), that's why it happens... I think

    Saludos

提交回复
热议问题