Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
146 views
in Technique[技术] by (71.8m points)

ios - @property definitions with ARC: Is strong default now?

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 (nonatomic, strong) like in the previous xcode.

My code seems to run fine after this change so I am assuming that it is defaulting to strong anyway, anyone know why things have changed with the ARC converter?

question from:https://stackoverflow.com/questions/9773604/property-definitions-with-arc-is-strong-default-now

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...