Skip to content

WenbinFan/KVO-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#KVO-Demo

addObserve

[self addObserver:self forKeyPath:@"items" options:0 context:nil];

keyValueChanged

[self willChangeValueForKey:@"items"];
[self didChangeValueForKey:@"items"];

listen for changes to the items delegate

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

Releases

No releases published

Packages

No packages published