Skip to content

Instantly share code, notes, and snippets.

@iljaiwas
Last active November 25, 2016 15:39
Show Gist options
  • Save iljaiwas/e481afcd02b37c3a4225a41509ea14d2 to your computer and use it in GitHub Desktop.
Save iljaiwas/e481afcd02b37c3a4225a41509ea14d2 to your computer and use it in GitHub Desktop.
Example of FBKVOController usage
#import <KVOController/KVOController.h>
- (void)viewDidLoad
{
[super viewDidLoad];
[self.KVOController observe:self keyPath:@"lastSelectedItem.primaryCategoryID" options:0 block:^(id weakself, id object, NSDictionary *change) {
[weakself updateConditionPopupForItems:[weakself selectedItems]];
[weakself updateConditionDescriptionAvailableForItems:[weakself selectedItems]];
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment