摘要: 关于oc中的强弱引用,有需要的朋友可以参考下。强引用和弱引用的广义区别强引用也就是通常所讲的引用,其存亡直接决定了所指对象的存亡。如果不存在指向一个对象的引用,并且此对象不再显示列表中,则此对象会被从内存中释放。弱引用除了不决定对象的存亡外,其他与强引用相同。即使一个对象被持有无数个若引用,只要没有... 阅读全文
posted @ 2015-05-08 21:51 ddhjy 阅读(796) 评论(0) 推荐(0) 编辑
摘要: 原文:The basic rule to apply is everything that increases the reference counter with alloc, [mutable]copy[withZone:] or retain is in charge of the corre... 阅读全文
posted @ 2015-05-08 14:23 ddhjy 阅读(189) 评论(0) 推荐(0) 编辑