在[super dealloc]前释放对象
如题
正确做法:
[cpp]
- (void)dealloc {
[viewController release];
[window release];
[super dealloc];
}
错误做法
[cpp]
- (void)dealloc {
[super dealloc];
[viewController release];
[window release];
}
super都被dealloc掉了,还咋么访问其包含的变量呢?
摘自 alexjames_83
补充:移动开发 , 其他 ,