I've noticed that in iOS 9 the annotations on my map are no longer using the images I wish to assign them and are now just showing up as red pins. This does not happen in iOS 8 or 7. Here is the code I am using to change the annotations image:
- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation{
if (annotation == mapView.userLocation) return nil;
MKPinAnnotationView *annView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"pin"];
UIImage *annotationImage = [UIImage imageNamed:@"MyFileNameWhatever.png"];
annView.image = annotationImage;
annView.canShowCallout = YES;
return annView;
}
I can't see any changes in the release notes for iOS 9, has something changed?