码迷,mamicode.com
首页 > 其他好文 > 详细

strong & weak

时间:2014-11-05 18:58:44      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:ar   strong   on   ad   amp   ef   as   ui   app   

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

标签:ar   strong   on   ad   amp   ef   as   ui   app   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!