Is “assign” the default setup of the @property compiler directive?
-
03-07-2019 - |
Question
If I define an property and just do:
@property(nonatomic) UIButton* button;
then I think that it's an "assign" property. Is that correct?
Solution
yes it is.
OTHER TIPS
default values of property params are
assign, readwrite and "atomic" (there is no keyword "atomic". only nonatomic)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow