I'd like to display the blue pulsing dot for a user's location. I'm doing this:
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation{
//some other stuff here
[self.mapView setShowsUserLocation:YES];
}
But I eventually get
-[MKUserLocation establishment]: unrecognized selector sent to instance 0x125e90
Should I be doing this some other way?
-- EDIT --
I'm also doing this, which is where I eventually get the above exception:
- (MKAnnotationView *) mapView:(MKMapView *)_mapView viewForAnnotation:(AddressNote *) annotation{
if(annotation.establishment != nil){
//do something}
establishment is a custom class I have on AddressNote. When establishment has a value, the exception occurs. If I don't set ShowsUserLocation, everything works fine but of course, I don't see the user location.