Skip to content

Commit 52854ab

Browse files
committed
Optimization of text format
1 parent a006322 commit 52854ab

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

01《招聘一个靠谱的iOS》面试题参考答案/《招聘一个靠谱的iOS》面试题参考答案.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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) 所说:

0 commit comments

Comments
 (0)