Clear UIWebView content upon dismissal of modal view (iPhone OS 3.0)

后端 未结 6 747
醉梦人生
醉梦人生 2020-12-08 11:12

I currently have a UIWebView that is displayed within a modal view. It is basically a detail view that provides a view of a page when the user clicks a link. When the view

6条回答
  •  盖世英雄少女心
    2020-12-08 11:17

    It seems under some circumstances the methods suggested by drawnonward and rob may not work (possibly something to do with CSS on the page that's being cleared), however this did work :

    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"about:blank"]]];
    

提交回复
热议问题