2

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

PengOne
  • 47,805
  • 17
  • 129
  • 148
rithik
  • 778
  • 1
  • 9
  • 21

2 Answers2

3

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.

Rengers
  • 14,293
  • 1
  • 34
  • 53
0

Objective-C 101 (retain vs assign) NSString

Community
  • 1
  • 1
Mikael
  • 3,526
  • 1
  • 29
  • 43