iPhone:MKAnnotation Pin 颜色“选定状态”
谁能告诉我如何更改注释图钉颜色的“选定状态”。这意味着如果您有一组 10 个引脚,它们是红色的,如果您选择一个引脚,它们会变为紫色。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须“捕获” MKAnnotation 视图上的选择操作。然后改变它的颜色。
此处描述了捕获事件: MKMapView:获取注释上的单击事件引脚
You have to "catch" the select action on the MKAnnotation view. And then change the color on it.
Catching the event is described here : MKMapView: Get clicked event on annotation pin