如何检测的注释显示在图形页面标注? [英] how to detect a callout of an annotation is showing on mapview?

查看:163
本文介绍了如何检测的注释显示在图形页面标注?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有签相关的应用程序。当用户点击地图上的一个地点,标注会弹出并显示其姓名和地址。与此同时,如果场地是从当前位置千米之内,在按钮的检查会显示出来。

I have a checkin related app. When user clicks a venue on map, callout will popup and show its name and address. At the same time, if the venue is within 1000m from current location, a check in button will be displayed.

要一个场所,可以签,我要的是,

To a venue that can checkin, all I want is,

在标注为弹出,检查按钮显示。当标注是消失时,按钮也消失了。

when callout is popup, check in button shows. when callout is disappear, that button disappears too.

现在显示按钮的效果很好,但我不知道如何检测标注可见的状态。是否有任何回调方法标注显示/隐藏?

Now show button works well, but I don't know how to detect callout visible status. Is there any callback method that callout show/hide?

在此先感谢!

推荐答案

标注出现被选中的注释时 - 你可以使用图形页面:didSelectAnnotationView:方法委托跟踪事件。标注隐藏注释时,取消选​​择 - 使用图形页面:didDeselectAnnotationView:的方法来跟踪该事件

Callout appears when annotation is selected - you can use mapView:didSelectAnnotationView: method in delegate to track that event. Callout hides when annotation is deselected - use mapView:didDeselectAnnotationView: method to track that event.

这篇关于如何检测的注释显示在图形页面标注?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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