After several searches and reading of the attributes of properties, I still cannot fully understand them and create a reflex for their proper use.
I have a few questions:
1) What is an attribute default?
As I understand it, without specifying an attribute in the "group", it is used by default, so this is:
@property NSString *string;
yes atomic, right?
By this logic , this article says that strongand assignare the default values, so if I have:
@property (nonatomic) NSString *string;
Is this a property string strongor assign?
How are available attributes βgroupedβ? Or how does Xcode words mean, which attributes are mutually exclusive?
2) Are there any general rules that should be followed?
, , , copy , NSString, NSArray.
, , assign C.
, :
@property (copy, nonatomic) NSString *string;
@property (assign, nonatomic) CGFloat float;
?
?
3) , "" ? , nonatomic ?