Apps under iOS receive low memory warnings via these mechanisms:
[AppDelegate applicationDidReceiveMemoryWarning:]
UIApplicationDidReceiveMemoryWarningNotification
[UIViewController didReceiveMemoryWarning]
What are the relationships between these items? Do they all occur when a low memory condition is received or do they have subtle differences? In what order are they executed?
In the simulator there is an option to "Simulate memory warnings". Does this do anything except for called didReceiveMemoryWarning:
on all UIViewControllers?
I'm wanting to use the Xcode profiler tool to see what happens these days around images loaded by the caching [UIImage imageNamed:]
method -- are they uncached? -- but I need to know how to 'properly' trigger low memory conditions -- even if it's just by allocating a whole lot of memory.