views:

47

answers:

0

Hi,

I ran the memory allocation tool and found that the "overall bytes" starts at 3.0 MB and reaches more than 120 MB when I navigate through screens (consist of UIViewControllers, buttons ...etc). And also, the number of "living bytes" shows around 20~25MB and the application gets crash at that point. Here are some points about my application,

  1. Very low number of memory leaks (around 1~2MB) or Not at all if you don't run some features.

  2. All the images (background images for UIButtons, UIImageView ...) displayed in my application are dynamically loaded from the NSCachesDirectory dynamically using the function "imageWithContentsOfFile" as it does not cach images in memory (thinking that this approach will save some memory).

  3. All the above mentioned images are loaded inside "viewDidLoad" function of each UIViewController.

My client is getting really impatient about this matter. hope someone can help me in resolving this issue. Thank you for anyone who put answers