MapKit Pin 掉落

发布于 2024-08-28 17:56:16 字数 107 浏览 1 评论 0原文

我想制作一个带有地图的 iPhone 应用程序,其中将有几个图钉。有人可以在我的项目中添加一两个图钉,以便我可以看到如何做到这一点。我已经尝试通过一些教程来做到这一点,但我不知道在哪里放置代码..=/

I wanna make an iPhone application with map that will have few pins in it.. Can someone please just add one or two pins in my project so that I can see how to do that.. I've tried to do that with few tutorials, but I don't get it where to put the code.. =/

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

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

发布评论

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

评论(1

寄与心 2024-09-04 17:56:16

您需要使用 MKPinAnnotationViewMapCallouts 演示项目有一些使用示例。查看 MapViewController.m 文件,特别是 mapView:viewForAnnotation: 方法。

You'll want to use an MKPinAnnotationView. The MapCallouts demo project has some example uses of it. Look at the MapViewController.m file, specifically the mapView:viewForAnnotation: method.

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