Objective-c series-@ Property & point syntax, objective-c
// Explain the meanings of modifiers in parentheses behind the property:
// Nonatomic non-thread-safe non-atomic operations features: high efficiency of operation variables
// Atomic thread-safe atomic operations features: low efficiency of operation variables
//
// Retain strongly references instance variables, that is, the setter method contains:
//-(Void) setXXX :( xxx) arg
//{
// [_ Attribute name release];
// _ Attribute name = [arg retain];
//}
// And the dealloc method needs to be rewritten for this class
// All other class objects with non-oc strings must use retain
//
// Copy, that is, the setter method contains:
//-(Void) setXXX :( xxx) arg
//{
// [_ Attribute name release];
// _ Attribute name = [arg copy];
//}
// And the dealloc method needs to be rewritten for this class
// Copy applies to: oc string, block
//
// Assign is assigned directly, that is, the setter method contains:
//-(Void) setXXX :( xxx) arg
//{
// _ Attribute name = arg;
//}
// Applicable to all non-object data types: int float, char, struct
// Union, void *, SEL, class bool Enumeration
// Readonly does not provide the setter method externally, so the instance variables cannot be modified externally.
**************************************** ********
// Point syntax
@ Class Person;
Person * person = [[Person alloc] init];
Person. name = @ "Haiyan"; // setter Method
NSString * love = person. name; // getter Method
End