使用 MKAnnotationView 而不使用 MKMapView?

发布于 2024-08-09 00:50:17 字数 136 浏览 3 评论 0原文

我想知道是否可以在 UIView 中使用 MKAnnotationView 而不是 MKMapView?我正在尝试寻找使用未记录的 UICalloutView 类的替代方法。我可以创建 MKAnnotationView 并将其添加到我的视图中,但无法显示它。

I'm wondering if it's possible to use the MKAnnotationView inside a UIView other than MKMapView? I'm trying to find an alternative to using the undocumented UICalloutView class. I can create the MKAnnotationView and add it to my view, but I can't get it to show.

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

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

发布评论

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

评论(3

这个俗人 2024-08-16 00:50:17

对于任何感兴趣的人:

我将 Ed Anuff 的代码移植到 Objective C。源代码包含一个示例。
您可以在此处下载。

也许 Ed 可以检查它(我希望我没有犯太多错误)并将其添加到他的 git 存储库中。

To anyone interested:

I ported the code of Ed Anuff to Objective C. The source is complete with an Example.
You can download it here.

Maybe Ed can check it (I hope I did not do too many mistakes) and add it to his git repository.

眼眸印温柔 2024-08-16 00:50:17

这是一个在 MonoTouch 中实现的类似 CalloutView,如果有人创建了 Obj-C 版本,请告诉我。

http://github.com/edanuff/MonoTouchCalloutView

This is a work-alike CalloutView implemented in MonoTouch, if someone creates an Obj-C version, let me know.

http://github.com/edanuff/MonoTouchCalloutView

腹黑女流氓 2024-08-16 00:50:17

查看开源 SMCalloutView,它是 UICalloutView 的近乎精确的复制品:

https://github.com/nfarina/calloutview

Check out the open-source SMCalloutView, which is a near-exact replica of UICalloutView:

https://github.com/nfarina/calloutview

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