有什么不同吗?
假设和ARC中的一样,retain应该换成strong?
那么我可以说它们是相同的吗?
最佳答案
不,没有区别。按照我的回答here :
retain / strong
: (automatically retains / releases values on set, makes sure values do not deallocate unexpectedly) (default if ARC and object type)
此外,readwrite 是属性的默认设置,因此没有必要,并且您已经指定了nonatomic
。
关于objective-c - Objective-C ARC 中的(非原子、读写、保留)和(非原子、强),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12113718/