rithik
rithik

Reputation: 778

Are @property(nonatomic)ivar @property(nonatomic,assign)ivar the same or different?

Are @property(nonatomic)ivar and @property(nonatomic,assign)ivar the same or different?

Upvotes: 2

Views: 571

Answers (2)

Rengers
Rengers

Reputation: 15228

As stated in the docs:

assign - Specifies that the setter uses simple assignment. This attribute is the default.

So no, as far as I know they are the same.

Upvotes: 3

Related Questions