Warum verschwindet ein benutzerdefiniertes MKMapView-Anmerkungsbild bei Berührung?

Ich beschrifte meine Karte mit Anmerkungen und stelle ein Bild ein, aber wenn ich auf die Anmerkung in der MapView tippe, wechselt das Bild von meinem benutzerdefinierten Bild zurück zum roten Stift. Warum ist das?

- (MKAnnotationView *)mapView:(MKMapView *)newMapView viewForAnnotation:(id )newAnnotation {
    MKPinAnnotationView *annotation = [[MKPinAnnotationView alloc] initWithAnnotation:newAnnotation reuseIdentifier:@"currentloc"];
    if (annotation == nil) {
        annotation = [[MKAnnotationView alloc] initWithAnnotation:newAnnotation reuseIdentifier:@"currentloc"];
    }

    annotation.image = [UIImage imageNamed:@"anno.png"];
    annotation.canShowCallout = YES;
    annotation.rightCalloutAccessoryView = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
    UIImageView *imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bus_stop_30x30.png"]];
    annotation.leftCalloutAccessoryView = imgView;

    return annotation;
}

Mein Code sieht aus wie ein Beispielcode, der dieses Problem nicht verursacht.

Antworten auf die Frage(3)

Ihre Antwort auf die Frage