If you want to find out if the user's location is in the currently displayed area of ββthe map, you can check the userLocationVisible property in the delegate method regionDidChangeAnimated :
- (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated { someButton.hidden = !mapView.userLocationVisible; }
If you just want to find out if the userβs location is currently located (whether it is visible or not, and whether showUserLocation is showing or not), then:
if (mapView.userLocation.location == nil) NSLog(@"user location not obtained yet"); else NSLog(@"user location available (may or may not be currently visible)"):
source share