File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
# 神奇的 BlocksKit (二)
2
2
3
-
4
3
Blog: [ Draveness] ( http://draveness.me )
5
4
6
- <iframe src =" http://ghbtns.com/github-btn.html?user=draveness&type=follow&size=large " height =" 30 " width =" 240 " frameborder =" 0 " scrolling =" 0 " style =" width :240px ; height : 30px ;" allowTransparency =" true " ></iframe >
7
-
8
5
这篇文章『神奇的 BlocksKit』的第二部分,关于第一部分的内容在这里:
9
6
10
7
+ [ 神奇的 BlocksKit(一)] ( https://github.com/Draveness/iOS-Source-Code-Analyze/blob/master/BlocksKit/神奇的%20BlocksKit%20(一).md )
@@ -13,7 +10,9 @@ Blog: [Draveness](http://draveness.me)
13
10
14
11
## 动态代理
15
12
16
- 动态代理这部分可以说是 BlocksKit 的精华。它** 使用 block 属性替换 UIKit 中的所有能够通过代理完成的事件** ,省略了设置代理和实现方法的过程,让对象自己实现代理方法(其实不是对象自己实现的代理方法,只是框架为我们提供的便捷方法,不需要构造其它对象就能完成代理方法的实现,具体我们会在后面详细地解释),而且这个功能的实现是极其动态的。
13
+ 动态代理这部分可以说是 BlocksKit 的精华。它** 使用 block 属性替换 UIKit 中的所有能够通过代理完成的事件** ,省略了设置代理和实现方法的过程,让对象自己实现代理方法,而且这个功能的实现是极其动态的。
14
+
15
+ > 其实不是对象自己实现的代理方法,只是框架为我们提供的便捷方法,不需要构造其它对象就能完成代理方法的实现,具体我们会在后面详细地解释。
17
16
18
17
下面是这部分几个关键的类:
19
18
You can’t perform that action at this time.
0 commit comments