@property definitions with ARC: Is strong default now?

前端 未结 2 1041
伪装坚强ぢ
伪装坚强ぢ 2020-12-25 10:44

Just running the ARC refactoring tool on the new xcode 4.3.1 and noticed that my (nonatomic, retain) properties are being swapped out for just (nonatomic) instead of (nonato

相关标签:
2条回答
  • 2020-12-25 11:01

    When the property is a basic type, the default value is assign, when the property is a object type, the default value is strong

    0 讨论(0)
  • 2020-12-25 11:15

    Yes, strong is the default in Xcode 4.3 and later. It's documented both in the LLVM docs and in Apple's guides to using properties and working with ARC.

    0 讨论(0)
提交回复
热议问题