Zeroing Weak References in ARC

前端 未结 1 393
离开以前
离开以前 2020-11-30 05:11

If my reading of Mike Ash\'s \"Zeroing Weak References\" writeup is correct, weak references are like assign references without ARC. However, if the referenced

相关标签:
1条回答
  • 2020-11-30 06:00

    It's mostly right, but assign properties are still treated the same as they ever were, only weak ones are zeroing. Another caveat is that zeroing weak references are only available in Mac OS X ≥ 10.7 and iOS ≥ 5. While the rest of ARC was backported to 10.6 and iOS 4, weak references cannot be used at all on these OS's.

    0 讨论(0)
提交回复
热议问题