Property and synthesize in iOS

Possible duplicate:
@property @synthesize

When should I use a property and synthesize for an element like NSArray, NSSTring .... or IBOutelt like UIButton or UITextFiled?

+4
source share
1 answer

The property is mainly used when other objects need to modify or access ivars in your object. Without manually defining getters and setters or using @property, other objects cannot see or modify ivars. Properties are also often used for convenient memory management, which helps prevent memory leaks.

+5
source

All Articles