File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -663,9 +663,11 @@ objc_setAssociatedObject(objectToBeDeallocted,
663663 2 . 读/写权限---` readwrite(读写) ` 、` readooly (只读) `
664664 3 . 内存管理语义---` assign ` 、` strong ` 、 ` weak ` 、` unsafe_unretained ` 、` copy `
665665 4 . 方法名---` getter=<name> ` 、` setter=<name> `
666-
667- @ property (nonatomic, getter=isOn) BOOL on;
666+
667+ ` getter=<name> ` 的样式:
668668
669+ @property (nonatomic, getter=isOn) BOOL on;
670+ ( ` setter=<name> ` 这种不常用,也不推荐使用。故不在这里给出写法。)
669671
670672###10 . weak属性需要在dealloc中置nil么?
671673不需要。
@@ -751,7 +753,7 @@ stringCopy的值也不会因此改变,但是如果不使用copy,stringCopy
751753
752754> 实例变量 = 成员变量 = ivar
753755
754- 笔者喜欢用“成员变量”这种说法 。
756+ 这些说法,笔者下文中,可能都会用到,指的是一个东西 。
755757
756758正如
757759[ Apple官方文档 *** You Can Customize Synthesized Instance Variable Names*** ] ( https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html#//apple_ref/doc/uid/TP40011210-CH5-SW6 ) 所说:
You can’t perform that action at this time.
0 commit comments