问题描述
我使用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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!