iOS init UIWebView to clear navigation history

后端 未结 3 1168
面向向阳花
面向向阳花 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:09

    The problem is that after you are init'ing the new webviewBridge or webviewSocial, you are immediately overwriting the new object with the assignment on the next line. Remove the third line in each method.

提交回复
热议问题