日々精進

新しく学んだことを書き留めていきます

不要なdidReceiveMemoryWarning

ちょくちょく以下のコードを見かけるけど、
これって何のためにあるんだろう。

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

didReceiveMemoryWarningをオーバーライドしなくても、親クラスのdidReceiveMemoryWarningは呼ばれるし。。
View以外のオブジェクトを解放する処理を書く場合以外はオーバーライドしなくていいよね。