UIWebView memory management

后端 未结 4 965
轮回少年
轮回少年 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条回答
  •  有刺的猬
    2020-12-15 19:57

    Try adding

    [webView loadHTMLString: @"" baseURL: nil];
    

    right before you release the webview. For a leak in 4.2.1 relating to displaying a PDF in a UIWebView this solves most of the leak problems for me.

提交回复
热议问题