Last active
August 29, 2015 14:06
-
-
Save sstadelman/bf2b4b16ab2af63f400e to your computer and use it in GitHub Desktop.
observeValuesForKeyPath
This file contains hidden or 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
| -(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context | |
| { | |
| if (!object) return; | |
| if ([keyPath isEqualToString:@"travelAgencies"]) { | |
| NSLog(@"updated to x = %@", [[Model shared].travelAgencies description]); | |
| [self.tableView reloadData]; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment