2

Any difference?

Suppose they are the same as in ARC, retain should be replaced by strong?

So can I say that they are the same?

Ryan
  • 10,041
  • 27
  • 91
  • 156

2 Answers2

4

No, there is no difference. In accordance to my answer here:

  • retain / strong: (automatically retains / releases values on set, makes sure values do not deallocate unexpectedly) (default if ARC and object type)

Also, readwrite is the default for a property, so that isn't necessary, and you are already specifying nonatomic.

Community
  • 1
  • 1
Richard J. Ross III
  • 55,009
  • 24
  • 135
  • 201
0

strong replaces retain and functions similar. if its an object weak replaces assign(saying reference the object but do not incrment its reference count), nonatomic is the same between the two

rooster117
  • 5,502
  • 1
  • 21
  • 19