この方法でマップに注釈を追加します。
MyAnnotation *annotationPoint2 = [[MyAnnotation alloc] init];
annotationPoint2.coordinate = anyLocation;
annotationPoint2.title = [NSString stringWithFormat:@"%@", obj];
annotationPoint2.subtitle = @""; //or set to nil
annotationPoint2.keyValue = [NSString stringWithFormat:@"%@", key];
[mapPins addAnnotation:annotationPoint2];
ピンは全部赤なので、全部緑にしたいです。どうすれば色を変えることができますか? 次のことを試しましたが、それでも赤いマークが付きます。
annotationPoint2.pinColor = MKPinAnnotationColorGreen;