Wednesday 26 March 2014

@Property Attributes

AttributeDescription
getter=Use a custom name for the getter method.
setter=Use a custom name for the setter method.
readonlyDon’t synthesize a setter method.
nonatomicDon’t guarantee the integrity of accessors in a multi-threaded environment. This is more efficient than the default atomic behavior.
strongCreate an owning relationship between the property and the assigned value. This is the default for object properties.
weakCreate a non-owning relationship between the property and the assigned value. Use this to prevent retain cycles.
copyCreate a copy of the assigned value instead of referencing the existing instance.


Reference




No comments:

Post a Comment