【发布时间】:2012-01-13 21:55:14
【问题描述】:
我对这两个限定词有点困惑......
使用 ARC 而不是使用 weak(即如果我需要支持 iOS 4)我可以使用 unsafe_unretained 失去自动零功能......最终结果似乎类似于 assign。
- 我可以用
assign交换unsafe_unretained吗? - 这些限定符是一回事吗?
Apple 文档中有关此论点的任何链接都会非常有趣...我只能找到几行 here
【问题讨论】:
-
对类似问题的回答中非常好的、清晰的解释:stackoverflow.com/a/9784807/686385
标签: objective-c ios automatic-ref-counting