We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to update the view as soon as the location has been retrieved. I added the below code in viewDidLoad method of my UIViewController.
[ [LocationShareModel sharedModel] addObserver:self forKeyPath:@"myLocationArray" options:NSKeyValueObservingOptionNew context:nil];
and added below code in my UIViewController for receiving the update.
-(void) observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {
if ( [keyPath isEqualToString:@"myLocationArray"] ) { NSLog(@"changedValues: %@", change); NSLog(@"Received value"); }
}
The observerValueForkeyPath is not being called.
Highly appreciate your help in this.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am trying to update the view as soon as the location has been retrieved. I added the below code in viewDidLoad method of my UIViewController.
and added below code in my UIViewController for receiving the update.
-(void) observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {
}
The observerValueForkeyPath is not being called.
Highly appreciate your help in this.
The text was updated successfully, but these errors were encountered: