Strong means that while this property points to an object, this object will not be automatically freed. In non-ARC, it's synonymous with retain
Indicates that there is a strong (owning) relationship with the target.
Weak instead means that the object that the property points to is freed, but only if it sets the property to NULL. In ARC, you use weak to make sure you donโt own the object that it points to
Indicates that there is a weak (non-owning) connection with the target. If the target is freed, the property value is automatically set to zero.
Nonatomic means that if multiple threads try to read or change a property at once, bad things can happen. The consequences are that there will be partially recorded values โโor re-issued objects = CRASH.
Look here in the Apple docs .
From there examples
@property (weak) IBOutlet MyView *viewContainerSubview; @property (strong) IBOutlet MyOtherClass *topLevelObject;
Also check this one to learn more about Strong and Weak .
Phillip
source share