gpt4 book ai didi

iphone - 为什么在非 ARC 环境中的属性上使用关键字 "strong"?

转载 作者:太空狗 更新时间:2023-10-30 03:43:10 25 4
gpt4 key购买 nike

我刚开始使用 Xcode 4.2 和 iOS5 进行开发。创建空的选项卡式应用程序项目后,我注意到在属性上使用了一个新关键字“strong”。我在 this post 上阅读关于它与 ARC 环境中的保留替换有关,但事实并非如此,因为我没有选中“使用自动引用计数”复选框。

最佳答案

关键字“Strong”在非 ARC 环境中是“保留”的同义词。

对于 ARC-envs,请阅读此处:http://clang.llvm.org/docs/AutomaticReferenceCounting.html#ownership.spelling.property

关于iphone - 为什么在非 ARC 环境中的属性上使用关键字 "strong"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7790407/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com