Property and its Attributes in Objective-C

Posted in code with : ios, objective-c


All the attributes of a property defines how the compiler generate the getter and setter accessors.

Apart from above, @synthesize define the instance variable used for accessors. @synthesize can only be used to property, not iVar. For more info, see Property vs Instance Variable (iVar) in objective-c.

Here has a detail description. And the useful part: