This is strange, I have a ViewController which adds a MKMapView as a subview. There are some steps in the application which when executed causes the user location pin to change its color from blue to gray.
I have investigated in the following
- there is no place where tintColor is changed in code base
- used
KVOto observe tint Color - analyzed that in "
viewWillAppear"(till last line) tintColor is "UIDeviceRGBColorSpace0 0.478431 1 1" while in "viewDidAppear" tintColor changes to "UIDeviceWhiteColorSpace0.392275 0.8"
Please elaborate if change in Color Space.
CGFloat mapviewY = self.searchView.frame.origin.y + self.searchView.frame.size.height + 1;
CGFloat mapviewHeight = self.view.frame.size.height - mapviewY;
_klMapView = [[KMapMapView alloc] initWithFrame:CGRectMake(kScreenOrigin,
mapviewY,
SCREEN_WIDTH,
mapviewHeight)];
_klMapView.mapViewDelegate = self;
[self.view addSubview:_klMapView];
Thanks Ankit
Check out if you are using mapView(mapView: _, viewForAnnotation: _) and format it this way.