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

后端 未结 2 599
悲哀的现实
悲哀的现实 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)

    0 讨论(0)
  • 2021-01-27 02:00

    yes it is.

    0 讨论(0)
提交回复
热议问题