2

我正在使用 MKMapView 注释来显示图钉。在我的项目中,有很多图钉掉落。我只想显示当前位置的图钉颜色和其他图钉颜色之间的差异。那么我如何为当前位置显示两种不同图钉的颜色和别的地方。

4

1 回答 1

6
   // Identify which pin is being selected  
   if([[annotation title] isEqualToString:@"Current Location"]) 
   {   
     annView.pinColor = MKPinAnnotationColorRed;
   }

还检查此链接: iOS 4.2 中的 Map Annotation 和 MKMapView 问题?

于 2011-01-13T03:34:41.003 回答