/ Published in: Objective C
Communication between objects..
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
- (void)applicationDidFinishLaunching:(UIApplication *)application { // Override point for customization after app launch [window addSubview:viewController.view]; [viewController addObserver:self forKeyPath:@"iVar" options:(NSKeyValueObservingOptionNew) context:NULL]; [window makeKeyAndVisible]; } NSLog(@"Value %@ changed in %@", keyPath, [object description]); }