【发布时间】:2009-06-17 05:04:35
【问题描述】:
我是先调用超类的方法还是最后调用超类的方法有关系吗?例如
-(void)didReceiveMemoryWarning {
/* do a bunch of stuff */
[super didReceiveMemoryWarning];
}
对
-(void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
/* do a bunch of stuff */
}
对于 viewWillAppear、willRotateToInterfaceOrientation 等其他方法也有同样的问题。
我正在寻找有意义的差异,而不仅仅是风格或哲学上的差异(尽管也欢迎这些差异)。
【问题讨论】:
标签: ios objective-c iphone oop cocoa-touch