I have an object that interests me when the MKMapView scope changes. However, this object is not a delegate of the map view. I am trying to do the following where map is MKMapView:
[map addObserver:self forKeyPath:@"region" options:0 context:nil];
However, observeValueForKeyPath:ofObject:change:context: not returned.
As an interim solution, I have a map delegate letting this other object know when the map area has changed, but I would like to parse the two objects, since they are really not connected.
ios mkmapview key-value-observing
James j
source share