My application is a tab bar based applcation including 6 tabs in it. When I receive a memory warning all 5 view controllers didReceiveMemoryWarning methods are getting called, except for 1 view controller. So I registered for UIApplicationDidReceiveMemoryWarningNotification in that view controller like this:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(didReceiveMemoryWarning)
name:UIApplicationDidReceiveMemoryWarningNotification
object:nil];
However, this view controller’s didReceiveMemoryWarning method is not called. Am I missing something?
I guess that after having called enough memory warnng methods, enough memory is freed so it do not call other anymore. As this may be called, or not, for other running apps. It may not call everybody to release data if enough data has already been released.