首页 > 其他 > 详细

strong & weak

时间:2014-11-05 18:57:33      阅读:257      评论:0      收藏:0      [点我收藏+]

Here is a quick summary: A strong reference will keep the object it points to from being deallocated. A
weak reference will not. Thus instance variables and properties that are marked as weak are pointing at
objects that might go away. If this happens, that instance variable or property will be set to nil, instead
of continuing to point to where the object used to live.

strong & weak

原文:http://www.cnblogs.com/playerken/p/4076981.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!