简体   繁体   English

strong(在LLVM中)和retain(在GCC中)之间有什么区别?

[英]what is the difference between strong (in LLVM) and retain( in GCC)?

strong(在LLVM编译器中)和retain(在GCC编译器中)之间有什么区别?

strong is a new feature in iOS 5 Automatic Reference Counting (ARC) which behave the same as retain in iOS 4. Referenced Article. strong是iOS 5自动引用计数(ARC)中的一项新功能,其行为与iOS 4中的retain相同。参考文章。

Also, check out this other SO question: @property definitions with ARC: strong or retain? 另外,请查看其他SO问题: @property定义与ARC:强还是保留?

strong is a new keyword that was introduced along with arc (automatic reference counting). strong是与arc一起引入的新关键字(自动引用计数)。 There are a bazillion articles about it if you search google, including this one http://cupsofcocoa.com/2011/11/27/the-jungle-part-4-automatic-reference-counting/ 如果你搜索谷歌有很多关于它的文章,包括这篇文章http://cupsofcocoa.com/2011/11/27/the-jungle-part-4-automatic-reference-counting/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM