简体   繁体   English

iPhone:MKA注释引脚颜色为“选定状态”

[英]iPhone: MKAnnotation Pin Color “Selected-State”

Can anyone tell me how to change the "selected state" of a annotation pin color. 谁能告诉我如何更改注释图钉颜色的“选定状态”。 Meaning if you have a group of 10 pins and they are red and if you select a pin it changes to purple. 这意味着如果您有一组10个针脚,并且它们是红色的,那么如果您选择一个针脚,它将变为紫色。

You have to "catch" the select action on the MKAnnotation view. 您必须“捕获” MKAnnotation视图上的选择动作。 And then change the color on it. 然后更改它的颜色。 Catching the event is described here : MKMapView: Get clicked event on annotation pin 捕获事件的描述如下: MKMapView:在注释图钉上获取单击的事件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM