Is “assign” the default setup of the @property compiler directive?

后端 未结 2 621
悲哀的现实
悲哀的现实 2021-01-27 01:11

If I define an property and just do:

@property(nonatomic) UIButton* button;

then I think that it\'s an \"assign\" property. Is that correct?

2条回答
  •  悲哀的现实
    2021-01-27 01:41

    default values of property params are

    assign, readwrite and "atomic" (there is no keyword "atomic". only nonatomic)

提交回复
热议问题