私のアプリケーションは、6 つのタブを含むタブ バー ベースのアプリケーションです。メモリ警告を受け取るdidReceiveMemoryWarning
と、1 つのビュー コントローラーを除いて、5 つのビュー コントローラー メソッドがすべて呼び出されます。だから私はこのようにそのView ControllerでUIApplicationDidReceiveMemoryWarningNotificationに登録しました:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(didReceiveMemoryWarning)
name:UIApplicationDidReceiveMemoryWarningNotification
object:nil];
ただし、このView ControllerのdidReceiveMemoryWarning
メソッドは呼び出されません。何か不足していますか?