如果我首先調用超類的方法,或者最後調用這個方法有什麼關係?例如是否在ObjectiveC中調用超類問題的方法?
-(void)didReceiveMemoryWarning {
/* do a bunch of stuff */
[super didReceiveMemoryWarning];
}
與
-(void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
/* do a bunch of stuff */
}
其他方法,如viewWillAppear中,willRotateToInterfaceOrientation等同樣的問題
我尋找有意義的差異,不只是風格,或哲學(雖然這些都是值得歡迎太)。
您如何對該評估中的willRotateToInterfaceOrientation進行分類? – fnCzar 2009-06-17 20:32:06