问题:
What do atomic
and nonatomic
mean in property declarations? 属性声明中atomic
和nonatomic
是什么意思?
@property(nonatomic, retain) UITextField *userName;
@property(atomic, retain) UITextField *userName;
@property(retain) UITextField *userName;
What is the operational difference between these three? 这三个之间的操作区别是什么?
解决方案:
参考一: https://stackoom.com/question/2TBq/原子属性和非原子属性有什么区别参考二: https://oldbug.net/q/2TBq/What-s-the-difference-between-the-atomic-and-nonatomic-attributes
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/3214621