在没有MKMapView的情况下使用MKAnnotationView? [英] Using MKAnnotationView without MKMapView?

查看:391
本文介绍了在没有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.

http://github.com/edanuff/MonoTouchCalloutView

这篇关于在没有MKMapView的情况下使用MKAnnotationView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆