【发布时间】:2011-03-22 12:48:58
【问题描述】:
NSLog(@"first:%u",[object retainCount]);
[object release];
NSLog(@"second:%u",[object retainCount]);
输出:
第一:1 第二:1为什么对象没有被释放?
【问题讨论】:
-
基本上不要使用retainCpount stackoverflow.com/questions/4636146/when-to-use-retaincount这里还有很多问题
-
你永远不应该使用
retainCount。
标签: iphone objective-c