uiwebview and huge memory loss

后端 未结 3 1860
不知归路
不知归路 2020-12-31 13:02

I have a problem using UIWebViews, I\'ve seen the same question here but there wasn\'t helpful answer. the question is here: UIWebView memory management . I will quote it:

3条回答
  •  感动是毒
    2020-12-31 13:14

    I know this thread is a bit old but just for an idea and to add few more relevant bits i would like to add these tips so the future visitors can have a look at this as well and there problem might get solved.

    • You should set Cache policy to your NSURLRequest object and check for policies that ignore cache data, see the documentation.

    • Since you have a call to release in your code i assume you are using ARC, so why you do not call [super dealloc] in viewDidUnload()?

    • Have a look at this thread for how to cleanForDealloc using UIWebView.

    • Is it a UITableViewController ? with a custom cells ? Try deallocating (release, removeFromSuperView, set to nil) them as well.

    Hope it helps!

提交回复
热议问题