Latest 0.1.1
Homepage https://github.com/jozsef-vesza/JVRKeyValueObserver
License MIT
Platforms ios 7.0, requires ARC
Authors

[![CI Status](http://img.shields.io/travis/József Vesza/JVRKeyValueObserver.svg?style=flat)](https://travis-ci.org/József Vesza/JVRKeyValueObserver)
Version
License
Platform

Credits

This pod was created following the excellent KVO article on objc.io. The original source can be found in their example repository for the article. I would like to thank objc.io for providing such high quality articles.

Usage


@interface MyViewController ()

@property (nonatomic, strong) id modelObserverToken;
@property (nonatomic, strong) MyObservableObject *observableObject;

@end

@implementation MyViewController

- (void)viewDidLoad {
    // Subscribe for change notifications with a given selector
    self.modelObserverToken = [JVRKeyValueObserver
                               observeObject:self.observableObject
                               keyPath:@"observableProperty" target:self
                               selector:@selector(modelDidChange:)
                               options:NSKeyValueObservingOptionNew];
}

- (void)modelDidChange:(NSDictionary *)change {
    // Handle changes...
}

@end

Installation

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

pod "JVRKeyValueObserver"

Author

József Vesza, @j_vesza

License

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

Latest podspec

{
    "name": "JVRKeyValueObserver",
    "version": "0.1.1",
    "summary": "A helper class for easier Key-Value Observing",
    "homepage": "https://github.com/jozsef-vesza/JVRKeyValueObserver",
    "license": "MIT",
    "authors": {
        "Ju00f3zsef Vesza": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jozsef-vesza/JVRKeyValueObserver.git",
        "tag": "0.1.1"
    },
    "social_media_url": "https://twitter.com/j_vesza",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes",
    "public_header_files": "Pod/Classes/*.h"
}

Pin It on Pinterest

Share This