美文网首页
runtime---strong实现

runtime---strong实现

作者: loveJL | 来源:发表于2018-09-12 15:15 被阅读0次

OC中strong修饰一个对象,实际上是调用了
void objc_storeStrong(id *location, id obj)
{
id prev = *locationd;
if (prev == obj) return;
objc_retain(obj);
*location = obj;
objc_release(prev);
}

相关文章

网友评论

      本文标题:runtime---strong实现

      本文链接:https://www.haomeiwen.com/subject/htgvgftx.html