正在开发的App为金融类型,后台频繁快速推送数据,UI界面需要及时响应。为了解决频繁reload UITableView等控件,解决办法是某个数据发生变化,仅刷新相应的独立UI元素(如,UILable,UIButton)。
利用单例作为观察者,所以大大简化了代码。利用对象必须先释放属性的特性,解决了频繁移除观察者的代码量,因此不再需要过分关注释放观察者的问题。默认单例不会释放,若意外释放,App将Crash。
To run the example project, clone the repo, and run pod install
from the Example directory first.
cell.textLabel.text = [self.dataSource[indexPath.row] name];
[cell.textLabel yyPassiveKeyPath:@"text" adjectiveObject:self.dataSource[indexPath.row] adjectiveKeyPath:@"name"];
s.ios.deployment_target = '8.0'
YYDataFlow is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'YYDataFlow'
0.0.2:更新了集合的匹配方法,优化查找效率。2018年01月03日10:51:26
Yvan, yuanyuan_pyy@163.com
YYDataFlow is available under the MIT license. See the LICENSE file for more info.