yuanyuan100 / YYDataFlow

KVO Center, Convenient call, No need to be removed; 不需要移除。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YYDataFlow

CI Status Version License Platform

Introduce

正在开发的App为金融类型,后台频繁快速推送数据,UI界面需要及时响应。为了解决频繁reload UITableView等控件,解决办法是某个数据发生变化,仅刷新相应的独立UI元素(如,UILable,UIButton)。

利用单例作为观察者,所以大大简化了代码。利用对象必须先释放属性的特性,解决了频繁移除观察者的代码量,因此不再需要过分关注释放观察者的问题。默认单例不会释放,若意外释放,App将Crash。

Example

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"];

Requirements

s.ios.deployment_target = '8.0'

Installation

YYDataFlow is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'YYDataFlow'

Update

0.0.2:更新了集合的匹配方法,优化查找效率。2018年01月03日10:51:26

Author

Yvan, yuanyuan_pyy@163.com

License

YYDataFlow is available under the MIT license. See the LICENSE file for more info.

About

KVO Center, Convenient call, No need to be removed; 不需要移除。

License:MIT License


Languages

Language:Objective-C 52.0%Language:Shell 43.9%Language:Ruby 4.2%