Latest 0.1.0
Homepage https://github.com/draveness/OKObserver
License MIT
Platforms ios 8.0
Authors

A lightweight framework which makes KVO easily to use.

CI Status
Version
License
Platform

Installation

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

pod "OKObserver"

Usage

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.

Author

Draveness, [email protected]

License

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

Latest podspec

{
    "name": "OKObserver",
    "version": "0.1.0",
    "summary": "A lightweight framework which makes KVO easily to use.",
    "description": "KVO is very troublesome to use, you need to call addObserver: method, override methodnto observe the event. All I need is when there is somthing changed, execute blocks.nAt first ReactiveCocoa fits my requirement, and I really had a happy time with it. Butnit is a swift framework and doesn't officially support cocoapods as installation method.nOKObserver is created under this circumstance to help us bind model and view.",
    "homepage": "https://github.com/draveness/OKObserver",
    "license": "MIT",
    "authors": {
        "Draveness": "[email protected]"
    },
    "source": {
        "git": "https://github.com/draveness/OKObserver.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "OKObserver/Classes/**/*"
}

Pin It on Pinterest

Share This