2

私のアプリケーションは、6 つのタブを含むタブ バー ベースのアプリケーションです。メモリ警告を受け取るdidReceiveMemoryWarningと、1 つのビュー コントローラーを除いて、5 つのビュー コントローラー メソッドがすべて呼び出されます。だから私はこのようにそのView ControllerでUIApplicationDidReceiveMemoryWarningNotificationに登録しました:

[[NSNotificationCenter defaultCenter] addObserver:self 
                                             selector:@selector(didReceiveMemoryWarning)
                                                 name:UIApplicationDidReceiveMemoryWarningNotification  
                                               object:nil];

ただし、このView ControllerのdidReceiveMemoryWarningメソッドは呼び出されません。何か不足していますか?

4

1 に答える 1