Last active
November 25, 2016 15:39
-
-
Save iljaiwas/e481afcd02b37c3a4225a41509ea14d2 to your computer and use it in GitHub Desktop.
Example of FBKVOController usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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