mapView.delegate = 自我与当前位置

mapView.delegate = self with current location

我正在将我的 mapView 委托设置为自我以使我的图钉标注工作,当我这样做时我的当前位置也显示为图钉。我该如何解决?enter image description here

    mapView.delegate = self


    self.locationManager.delegate = self


    self.locationManager.desiredAccuracy = kCLLocationAccuracyBest


    self.locationManager.requestWhenInUseAuthorization()


    self.locationManager.startUpdatingLocation()


    self.mapView.showsUserLocation = true
func mapView(mapView: MKMapView, viewForAnnotation annotation: MKAnnotation) -> MKAnnotationView? {     
    if annotation.isKindOfClass(MKUserLocation) {
        return nil
    }
}
func mapView(mapView: MKMapView!, viewForAnnotation annotation: MKAnnotation!) -> MKAnnotationView! {

        if (annotation is MKUserLocation) {

            return nil
        }