2

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

PengOne
  • 48,188
  • 17
  • 130
  • 149
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,911
  • 1
  • 36
  • 54
0

Objective-C 101 (retain vs assign) NSString

Community
  • 1
  • 1
Mikael
  • 3,572
  • 1
  • 30
  • 43