BlocksKit block functional programming from a supporting role to the main character of -oc road to --oc rx?

BlocksKit functional layer oc language, a lot of the UI layer is adapted such that the composite can be oc functional programming style;

 

Is a functional programming style transformation oc language;

The functional style BlocksKit API interpreted as a native function calls;

 

The height of the encapsulation block of a system API calls,

 

 

4, BlocksKit directory structure

 

BlocksKit code is stored in the directory 4 are Core, DynamicDelegate, MessageUI, UIKit. among them:

 

Core Foundation Kit storage-related Block category

DynamicDelegate dynamic proxy (an event-forward mechanism) the relevant code

MessageUI store MessageUI related to Block category

UIKit store UIKit-related Block category

5, Core relevant code analysis

 

Core folder following code can be divided into the following parts:

 

1、容器相关(NSArray、NSDictionary、NSSet、NSIndexSet、NSMutableArray、NSMutableDictionary、NSMutableSet、NSMutableIndexSet)

2, associated objects related

3, logic to perform certain

4, KVO related

5, timer-related

--------------------- 

Author: xiaoxiaobukuang 

Source: CSDN 

Original: https: //blog.csdn.net/xiaoxiaobukuang/article/details/51752273 

Disclaimer: This article is a blogger original article, reproduced, please attach Bowen link!

Guess you like

Origin www.cnblogs.com/feng9exe/p/10956995.html