Low memory warnings & UIWebview

Discussion in 'iOS Programming' started by daisyhedson, Oct 30, 2009.

  1. daisyhedson macrumors newbie

    Aug 21, 2009
    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?
  2. mgamber macrumors 6502a


    Jun 12, 2008
    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.

Share This Page