PDA

View Full Version : Low memory warnings & UIWebview




daisyhedson
Oct 30, 2009, 06:44 AM
I'm developing an App which has UIWebview component which is to load documents for user's view. Often getting low memory warning and leads to a crash while viewing documents. Read forums related to this and still confused.

Can anyone help me how to avoid/handle low memory warnings in UIWebview?



mgamber
Oct 30, 2009, 08:20 AM
I'm developing an App which has UIWebview component which is to load documents for user's view. Often getting low memory warning and leads to a crash while viewing documents. Read forums related to this and still confused.

Can anyone help me how to avoid/handle low memory warnings in UIWebview?

Unless you're loading HUGE documents...gigabytes in size...there's more to the story than the UIWebView. I use it in a bunch of places and never had a memory problem. When I've run into memory problems, it was always because I wasn't releasing something I created or alloced. Next time you compile, select Build and Analyze and see what it has to say. Also, try running your app with Run with Performance Tool -> Leaks. That's helped me considerably.