开发者

Why a keyword "strong" is used on a property in non-ARC environment?

开发者 https://www.devze.com 2023-04-13 06:02 出处:网络
I just started to develop with with Xcode 4.2 and iOS5. After creating empty Tabbed application project, I have noticed that a new keyword \"strong\" is used on properties. I re开发者_如何转开发ad on

I just started to develop with with Xcode 4.2 and iOS5. After creating empty Tabbed application project, I have noticed that a new keyword "strong" is used on properties. I re开发者_如何转开发ad on this post about it being related to retain replacement in ARC environment, but it's not the case because I didn't checked "Use Automatic Reference Counting" check box.


The keyword "Strong" is a synonym for "retain" in non-ARC environments.

For ARC-envs read up here: http://clang.llvm.org/docs/AutomaticReferenceCounting.html#ownership.spelling.property

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号