MKMapView调用didSelectAnnotationView [英] MKMapView calling didSelectAnnotationView

查看:172
本文介绍了MKMapView调用didSelectAnnotationView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用MKMapView.在地图上,我显示了可点击的AnnotationViews. 单击AnnotationView后,我将MyController推送到NavigationController. 在MyController中,我单击后退按钮,这将显示我以前的控制器(执行弹出控制器). 当我在上一个Controller回调中单击AnnotationVIew时,未刮除 didSelectAnnotationView .为什么会发生?

I use MKMapView. On map I show clickable AnnotationViews. After click on AnnotationView, I push MyController to NavigationController. In MyController I click on the back button, after this my previous controller is show (do pop controller). When I click on AnnotationVIew in my previousController callback didSelectAnnotationView does not rased. Why it happened?

推荐答案

它是因为当我单击注释时,它选择了注释,而当我再次单击该注释时,它不调用回调didSelectAnnotationView,因为该注释已被选择.

It because when I click on annotation it annotation selected and when I click on this annotation again it does not call callback didSelectAnnotationView, because this annotation already selected.

这篇关于MKMapView调用didSelectAnnotationView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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