How do I load different custom pins or identifiers based off of their property values?
问题 I have an array of objects that conform to <MKAnnotation> . I load this array into my annotations using addAnnotations:. In the method: - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation: (id<MKAnnotation>)annotation I have every pin load a custom image using: annotationView.image = [UIImage imageNamed:@"purp_pin.png"]; However, I don't want all the pins to load with this image. I want it to load a different custom image/identifier depending on the properties the object that