Safari
Safari

Reputation: 11935

Mapkit and userTrackingMode

I have a question about MapKit. I set the userTrackingMode property to move the map according to the user position update.

 [_mapView setUserTrackingMode:MKUserTrackingModeFollowWithHeading animated:YES];

Is there a way to be alerted when you exit from this mode?

Upvotes: 0

Views: 687

Answers (1)

Stonz2
Stonz2

Reputation: 6396

From the Apple Docs on MKMapViewDelegate Protocol:

mapView:didChangeUserTrackingMode:animated:
Tells the delegate that the user tracking mode changed.

  • (void)mapView:(MKMapView *)mapView didChangeUserTrackingMode:(MKUserTrackingMode)mode animated:(BOOL)animated

Upvotes: 1

Related Questions