views:

35

answers:

1
+1  Q: 

Memory Management

Hi,

I have resolved memory leaks from my app but my app was still crashing with Program received signal 0. i have checked my app in developer tools. it is showing 30 mb when app launches. It is taking too much memory. how'll i resolve this? anyone has any solution?

Thanks rajni

A: 

There's not an absolute amount of memory that's okay. If iOS thinks you're using too much it will send you a notification (and there are delegate methods in UIApplicationDelegate and UIViewController too).

At that point you should release as much memory as you can. If there's nothing to release you'll just have to optimise your app to make it use less space.

You don't say which device you're running on, but in my experience, 30Mb sounds like a lot for the original iPhone and 3G.

Stephen Darlington