iPhone地图查看当前位置

发布于 2024-08-31 16:00:41 字数 105 浏览 0 评论 0原文

我能够在地图视图上显示当前位置。它显示圆形蓝色圆圈。当我单击圆圈时,它会显示“当前位置”。 我想将用户当前位置显示为绿色图钉。单击图钉时,我想显示“我的位置”注释。怎么做呢。 请建议我该怎么做。

I'm able to show current location on mapview. It shows round blue color circle. When I click on the circle, it shows "Current Location".
I want to show users current location as green pin. on click of pin, i want to show "My Location" annotation. How to do it.
Please suggest me how to do it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

╰◇生如夏花灿烂 2024-09-07 16:00:41

这样做是一个坏主意。蓝点和相关动画是所有 MapKit 应用程序都遵守的约定。您的用户也可能会搬家。引脚与固定位置相关联。拿着手机的人并不是一个固定点。

请认真考虑 MapKit 标准和 Apple HIG,它们是为了帮助您的用户理解并享受您的应用程序。

Doing so is a bad idea. The blue dot and associated animation is a convention that is adhered to by all MapKit apps. Your user might be moving too. A pin is associated with a fixed location. Someone holding a phone is not a fixed point.

Please really think about the MapKit standards and Apple HIG they are there to help your users understand and enjoy your app.

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