UIWebView memory management

后端 未结 4 978
轮回少年
轮回少年 2020-12-15 19:19

I have a problem with memory management.

I am developing an application that makes heavy use of UIWebView. This app generates dynamically lots of UIWebViews while lo

4条回答
  •  -上瘾入骨i
    2020-12-15 19:54

    Write this in your viewWillDisappear method:

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

提交回复
热议问题