kvo-block-binding:使用块观察使用KVO的Objective-C属性

时间:2024-04-16 09:04:57
【文件属性】:

文件名称:kvo-block-binding:使用块观察使用KVO的Objective-C属性

文件大小:32KB

文件格式:ZIP

更新时间:2024-04-16 09:04:57

C

使用KVO将块绑定到属性 此仓库包含一个简单的类别,NSObject + WSObservation和一个示例项目。 类别添加了使用块观察键路径的方法: - (WSObservationBinding*)observe:(id)object keyPath:(NSString *)keyPath options:(NSKeyValueObservingOptions)options block:(WSObservationBlock)block; - (WSObservationBinding*)observe:(id)object keyPath:(NSString *)keyP


【文件预览】:
kvo-block-binding-master
----KVOBlockBindingExample.xcodeproj()
--------project.pbxproj(22KB)
----KVOBlockBinding()
--------EXTKeyPathCoding.h(1KB)
--------NSObject+WSKeyPathBinding.m(2KB)
--------NSObject+WSObservation.h(2KB)
--------NSObject+KVOBlockBinding.h(2KB)
--------WSObservationBinding.m(1KB)
--------NSObject+KVOBlockBinding.m(2KB)
--------WSObservationBinding.h(894B)
--------NSObject+WSKeyPathBinding.h(936B)
--------NSObject+WSObservation.m(2KB)
--------metamacros.h(30KB)
----LICENSE.md(1KB)
----.gitignore(42B)
----WSKVOBlockBinding.vendorspec(498B)
----KVOBlockBindingExample()
--------main.m(223B)
--------KVOBlockBinding-Prefix.pch(377B)
--------ExampleModel.m(115B)
--------KVOBlockBindingViewController.h(867B)
--------ExampleModel.h(189B)
--------KVOBlockBindingViewController.m(3KB)
--------KVOBlockBinding-Info.plist(1KB)
--------KVOBlockBindingAppDelegate.h(293B)
--------KVOBlockBindingAppDelegate.m(600B)
--------en.lproj()
----KVOBlockBindingTests()
--------KVOBlockBindingTests.h(237B)
--------KVOBlockBindingTests-Info.plist(691B)
--------KVOBlockBindingTests-Prefix.pch(171B)
--------KVOBlockBindingTests.m(3KB)
--------en.lproj()
----README.md(3KB)

网友评论