If i have the following in my .h file:
@property UIButton *connect;
Is this the same as:
@property(atomic, strong) UIButton *connect;
Eg what are the default 'arguments' in an @property declaration?
If i have the following in my .h file:
@property UIButton *connect;
Is this the same as:
@property(atomic, strong) UIButton *connect;
Eg what are the default 'arguments' in an @property declaration?
According to the docs, properties default to atomic
and strong
.
Properties are Atomic by Default
Use Strong and Weak Declarations to Manage Ownership - see the next sentence.
Yes. atomic
and strong
are default attributes. It seems to be spread out in the docs though it took a longer than I thought to find: