Google News
logo
IOS - Interview Questions
Differentiate between the 'assign' and 'retain' keywords.
Retain : specifies that retain should be invoked on the object upon assignment. It takes ownership of an object.

Assign : specifies that the setter uses simple assignment. It is used on attributes of scalar type like float, int.
Advertisement