Instance Method

mapViewDidStopLocatingUser(_:)

Tells the delegate that the map view stopped tracking the user’s location.

Declaration

optional func mapViewDidStopLocatingUser(_ mapView: MKMapView)

Parameters

mapView

The map view that stopped tracking the user’s location.

Discussion

This method is called when the value of the showsUserLocation property changes to false.

See Also

Tracking the User Location

func mapViewWillStartLocatingUser(MKMapView)

Tells the delegate that the map view will start tracking the user’s position.

func mapView(MKMapView, didUpdate: MKUserLocation)

Tells the delegate that the location of the user was updated.

func mapView(MKMapView, didFailToLocateUserWithError: Error)

Tells the delegate that an attempt to locate the user’s position failed.

func mapView(MKMapView, didChange: MKUserTrackingMode, animated: Bool)

Tells the delegate that the user tracking mode changed.