在没有MKMapView的情况下使用MKAnnotationView?

编程入门 行业动态 更新时间:2024-10-28 02:34:13
本文介绍了在没有MKMapView的情况下使用MKAnnotationView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想知道是否可以在除MKMapView之外的UIView中使用MKAnnotationView?我正在尝试找到使用未记录的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.

推荐答案

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

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

github/edanuff/MonoTouchCalloutView

更多推荐

在没有MKMapView的情况下使用MKAnnotationView?

本文发布于:2023-11-16 21:24:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1607518.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:情况下   MKMapView   MKAnnotationView

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!