iPhone:MKAnnotation Pin 颜色“选定状态”

发布于 2024-08-13 18:20:34 字数 73 浏览 4 评论 0原文

谁能告诉我如何更改注释图钉颜色的“选定状态”。这意味着如果您有一组 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苯莒 2024-08-20 18:20:34

您必须“捕获” 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文