strong和retain在LLVM编译器和GCC编译器中有什么区别?
strong
是iOS 5自动引用计数(ARC)中的一个新功能,与iOS 4中的retain
相同。 参考文章。
另外,请查看这个其他的SO问题:@property definitions with ARC: strong or retain?
strong 是随着 ARC(自动引用计数)一起引入的新关键字。如果您在 Google 上搜索,会出现很多有关它的文章,包括这篇http://cupsofcocoa.com/2011/11/27/the-jungle-part-4-automatic-reference-counting/。