创建一个 Drop Pin MKPinAnnotation 支持拖动,就像地图应用程序中的 Drop Pin 一样

发布于 2024-09-03 05:08:33 字数 209 浏览 1 评论 0原文

我想知道是否可以在自定义 MKMapView 中创建 MKPinAnnotation,它可以像地图应用程序中的“Drop Pin”注释一样响应触摸和拖动。

我想要一种在 GPS 给出的位置放置图钉的方法。然后,如果 GPS 不太准确,用户可以通过触摸 Pin 图并将其向右拖动来微调精确位置。

如果使用允许的 SDK 无法实现此操作,请提供任何帮助或信息,我们将不胜感激。

I wonder if it's possible to create an MKPinAnnotation in a Custom MKMapView, which answers to touch and drag just like the "Drop Pin" annotation in the Maps App.

I would like a way to drop a pin at a location given by the GPS. Then let the user fine tune the exact location by touching the Pin and dragging it right, if the GPS is a bit too inaccurate.

Any help is appreciated, or information if this is impossible with allowed SDKs.

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

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

发布评论

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

评论(2

梦在深巷 2024-09-10 05:08:33

您可以查看我的项目:http://github.com/digdog/MapKitDragAndDrop,它在操作系统上运行3.1 或更高版本。

You can check out my project: http://github.com/digdog/MapKitDragAndDrop, it runs on OS 3.1 or later.

如果您只想了解如何使用 4.0,这也可能有帮助: (iPhone)如何使用OS 4.0 MapKit实现可拖动图钉?

This may help too, if you just want to see how to do it with 4.0: (iPhone) how to implement draggable pins using OS 4.0 MapKit?

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