Latest 1.0.0
Homepage https://github.com/wangyin1/YINMapping
License MIT (LICENSE)
Platforms ios 9.0
Authors

kvo响应式编程封装

__weak typeof(self)weakSelf = self;

//监听某一个属性
[self.person y_addBind:[YINBindObj obj:self.textF keyPath:@"text"] Mapping:^(NSObject *bind, NSString *property) {
    weakSelf.person.name = weakSelf.textF.text;
}];

//监听某个对象所有属性变化
[self.label y_addBind:[YINBindObj obj:self.person] Mapping:^(NSObject *bind, NSString *property) {
    weakSelf.label.text = weakSelf.person.name;
}];

////
// [self.label y_addBind:[YINBindObj obj:self.person keyPath:@"name"] Mapping:^(NSObject bind, NSString property) {
// weakSelf.label.text = weakSelf.person.name;
// }];

pod ‘YINMapping’

Latest podspec

{
    "name": "YINMapping",
    "version": "1.0.0",
    "summary": "YINMapping ios kvo u54cdu5e94u7f16u7a0b",
    "description": "ios kvo u54cdu5e94u7f16u7a0b u4f7fu7528u4fbfu6377",
    "homepage": "https://github.com/wangyin1/YINMapping",
    "license": "MIT (LICENSE)",
    "authors": {
        "wangyin1": ""
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/wangyin1/YINMapping.git",
        "tag": "1.0.0"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "public_header_files": "Classes/**/*.h"
}

Pin It on Pinterest

Share This