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

时间:2011-10-17 07:07:05

标签: iphone objective-c properties automatic-ref-counting

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

1 个答案:

答案 0 :(得分:7)

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

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