A lightweight framework which makes KVO easily to use.
OKObserver is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "OKObserver"
Use OKObserver
to bind view and model.
[OKObserve(object, color) update:OKObserve(self.view, backgroundColor)];
Easily to use API for KVO
[OKObserve(object, color) whenUpdated:^(UIColor *backgroundColor) {
self.view.backgroundColor = backgroundColor;
}];
The two usage above has the same function.
Draveness, stark.draven@gmail.com
OKObserver is available under the MIT license. See the LICENSE file for more info.