哪些 iOS 版本支持带有 __weak 指示符的 ARC?
我认为 __Weak 指示符只能在 iOS5 上使用,在以前的 iOS 版本上你必须使用 __unsafe_unretained 。但在此评论中 https://stackoverflow.com/a/8543037/904972 NJones 暗示 iOS 4.3+ 处理 __weak 引用而你必须在 iOS 上使用 __unsafe_unretained < 4.2.是这种情况还是我误解了这个帖子。如果是这种情况,您可以提供苹果“官方”答案的链接吗?
I thought that the __Weak designator would only work on iOS5 where you would have to use __unsafe_unretained on previous iOS versions. But in this comment https://stackoverflow.com/a/8543037/904972 NJones implies that iOS 4.3+ handles __weak references whereas you have to use __unsafe_unretained on iOS < 4.2. Is this the case or am I misunderstanding the post. If it is the case can you provide a link to an "official" answer from apple.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 http://developer.apple.com/library /mac/#releasenotes/ObjectiveC/RN-TransitioningToARC/_index.html
From http://developer.apple.com/library/mac/#releasenotes/ObjectiveC/RN-TransitioningToARC/_index.html