Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 MKMapView 注释来显示图钉。在我的项目中,有很多图钉掉落。我只想显示当前位置的图钉颜色和其他图钉颜色之间的差异。那么我如何为当前位置显示两种不同图钉的颜色和别的地方。
// Identify which pin is being selected if([[annotation title] isEqualToString:@"Current Location"]) { annView.pinColor = MKPinAnnotationColorRed; }
还检查此链接: iOS 4.2 中的 Map Annotation 和 MKMapView 问题?