If my application doesn't use a lot of memory, can I ignore viewDidUnload:?
Posted
by iPhoneToucher
on Stack Overflow
See other posts from Stack Overflow
or by iPhoneToucher
Published on 2010-03-26T19:44:11Z
Indexed on
2010/03/26
20:03 UTC
Read the original article
Hit count: 220
My iPhone app generally uses under 5MB of living memory and even in the most extreme conditions stays under 8MB. The iPhone 2G has 128MB of RAM and from what I've read an app should only expect to have 20-30MB to use.
Given that I never expect to get anywhere near the memory limit, do I need to care about memory warnings and setting objects to nil in viewDidUnload:? The only way I see my app getting memory warnings is if something else on the phone is screwing with the memory, in which case the entire phone would be acting silly. I built my app without ever using viewDidUnload:, so there's more than a hundred classes that I'd need to inspect and add code to if I did need to implement it.
© Stack Overflow or respective owner