上一篇在講 viewDidLoad 這類系統的方法要不要加上super
,在查過 Stack Overflow 後得出了個勉強的結論,不過就在我睡前查了一下官方的文件後有個驚人的發現,文件上都有寫......
我就把幾個比較常用到的從文件上截下來:
didReceiveMemoryWarning
:You can override this method to release any additional memory used by your view controller. If you do, your implementation of this method must call the super implementation at some point.viewWillAppear:
:If you override this method, you must call super at some point in your implementation.viewWillDisappear:
:If you override this method, you must call super at some point in your implementation.