假设我有局部变量(不是属性)Obj *x = d,d 的引用计数是否递增?还是默认为弱引用?
最佳答案
Apple 的文档(Variable Qualifiers
部分)说:
__strong is the default. An object remains “alive” as long as there is a strong pointer to it.
关于ios - 局部变量默认为强还是弱?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31682334/