How to clear back forward list in UIWebview on iPhone?

前端 未结 8 472
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-10 13:09

I want to access/clear the back forward list as if the UIWebView is new again. Is there any public API or workaround to do this?

I\'ve tried:

         


        
8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-10 13:58

    I would imagine you can break the history by manually loading some HTML...

    Something like:

    [webview loadHTMLString:@"" baseURL:@""];
    

提交回复
热议问题