iPhone 应用程序上的 Google 地图:当前位置

发布于 2024-08-18 02:20:43 字数 134 浏览 2 评论 0原文

我正在开发一个 iPhone 应用程序,在其中实现地图视图。加载地图时,当前位置会显示紫色图钉。我的问题是,当用户触摸这个紫色图钉时,我想在新视图上显示当前位置。

有什么想法吗?

请帮忙。

谢谢, 阿利安人

I am working on an iPhone app in which I am implementing a map view. When the map loads, a purple pin is displayed at the current location. My problem is that I want to show the current location on a new view when the user touches this purple pin.

Any idea?

Please help.

Thanks,
Aaryan

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

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

发布评论

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

评论(1

舟遥客 2024-08-25 02:20:43

当用户点击注释图钉时,可以显示标注注释和附件视图。标注附件视图可以是具有关联操作的控件(按钮)。

如果标注视图不能满足您的需求,您可以将带有您自己的操作的不可见按钮放在地图视图上的图钉上。

在任何一种情况下,您都可以在按钮操作调用的方法中显示视图、导航等。

When a user taps an annotation pin, callout annotation and accessory views can be displayed. The callout accessory views can be controls (buttons) with associated actions.

If callout views will not meet your needs, you could instead put invisible buttons with your own actions over the pins on the map view.

In either case, you can display views, navigate, etc in the method(s) called by the button actions.

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