Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

daisyhedson

macrumors newbie
Original poster
Aug 21, 2009
5
0
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?
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.