Hi all,
I have a quick inquiry regarding how and when didReceiveMemoryWarning gets invoked. I completely understand how to properly use the method. My question that I cannot find in documentation however, is whether or not it is my fault for the way I'm managing my memory footprint for this method being invoked?
Is it possible that I'm doing everything perfectly fine and that the iPhone OS needs memory, thus sends me this notification since I'm a third party app? I've been running leaks, ObjectAlloc and whatever tools I have available in order to see any odd behavior. My memory footprint peaks at 2.2MB at most. I don't see anything particularly horrible being done code wise.
Now it's getting to the point where I'll have some other apps open, use my iPhone here and there -- then open the app I'm developing. This view is a UITableViewController ultimately that displays a dataSource that was built from a remote XML feed. So it is possible that I'm doing something terribly wrong. But I need to understand this method better before making any accusations on my own code.
Is it possible for this method to be invoked on an app that's perfectly healthy in how it manages memory?