I want to display a blue pulsating dot for the user's location. I'm doing it:
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation{
[self.mapView setShowsUserLocation:YES];
}
But I end up getting
-[MKUserLocation establishment]: unrecognized selector sent to instance 0x125e90
Should I do it differently?
- EDIT -
I do this too, and I end up with an exception:
- (MKAnnotationView *) mapView:(MKMapView *)_mapView viewForAnnotation:(AddressNote *) annotation{
if(annotation.establishment != nil){
Creation is a custom class that I use in AddressNote. When institution value matters, an exception is raised. If I do not set ShowsUserLocation, everything works fine, but of course I don't see the user's location.
source
share