MKMapView center not correct MKMapView center not correct objective-c objective-c

MKMapView center not correct


Try this:

_mapView.delegate = self;func mapView(mapView: MKMapView!, didUpdateUserLocation         userLocation: MKUserLocation!) {    mapView.centerCoordinate = userLocation.location.coordinate}