search

Home  >  Q&A  >  body text

ios webview 内存暴涨

阿神阿神2767 days ago396

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 17:14:52

    Solutions that can be manually released are not very effective. . I have tried all the above solutions on StackOverFlow
    iOS8 and above systems can consider migrating WKWebView, which is very efficient. .
    My general solution is to judge the system. . iOS7 WebView, use WKWebView for iOS8 and above
    iOS7’s share is already very low. . = , = (Isn’t this very irresponsible)
    Also, avoid loading multiple WebViews. . This approach is also very desperate

    reply
    0
  • 迷茫

    迷茫2017-04-17 17:14:52

    Replace WebView with WKWebView. The most intuitive reflection is that loading web pages takes up memory. When the simulator loads Baidu and open source Chinese websites, WKWebView takes up 23M, while UIWebView takes up 85M

    reply
    0
  • Cancelreply