Skip to content

Commit

Permalink
Merge pull request ChenYilong#14 from DarkTm/patch-1
Browse files Browse the repository at this point in the history
Update 《招聘一个靠谱的iOS》面试题参考答案(上).md, error  about+resolveInstanceMethod 【什么时候会报unrecognized selector的异常?】
  • Loading branch information
ChenYilong committed Sep 10, 2015
2 parents 7e1a678 + 205cb5a commit 5ee1a44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ objc在向一个对象发送消息时,runtime库会根据对象的isa指针找

1. Method resolution

objc运行时会调用`+resolveInstanceMethod:`或者 `+resolveClassMethod:`,让你有机会提供一个函数实现。如果你添加了函数并返回 YES,那运行时系统就会重新启动一次消息发送的过程,如果 resolve 方法返回 NO ,运行时就会移到下一步,消息转发(Message Forwarding)。
objc运行时会调用`+resolveInstanceMethod:`或者 `+resolveClassMethod:`,让你有机会提供一个函数实现。如果你添加了函数,那运行时系统就会重新启动一次消息发送的过程,否则 ,运行时就会移到下一步,消息转发(Message Forwarding)。

2. Fast forwarding

Expand Down

0 comments on commit 5ee1a44

Please sign in to comment.