KVO pattern in iOS

Download the sample project here: https://github.com/kmdarshan/LearnKVO

I have implemented a sample project with KVO explained. The two main methods to note are :

[bobj addObserver:pobj forKeyPath:@"balance" options:NSKeyValueObservingOptionNew context:NULL];

-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context

In

Leave a Reply

Your email address will not be published. Required fields are marked *