如何检测 MKannotationView 的标注?
我们知道annView(注释视图)有左右CalloutAccessoryView,但是为什么注释视图没有标注出口呢?因为我想创建一个在单击 Annview.callout 时将被调用的事件。或者有什么代码可以在不自定义标注的情况下做到这一点?
所以我们有 annView.rightCalloutAccessoryView 我们有 annView.leftCalloutAccessoryView
为什么我们没有 annView.Callout?
As we know that annView(annotation view) has left and right CalloutAccessoryView, but why annotation view doesnt have a callout outlet? because I want to make a event that will be called if Annview.callout has been clicked. or is there anything code to do that without customize Callout?
so we have annView.rightCalloutAccessoryView
and we have annView.leftCalloutAccessoryView
why we do not have annView.Callout?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嘿,
您可以使用 MKMapView 委托方法:
您可以使用 if 或 switch 检查该位置已被单击的方法陈述。
Maby 这就是你需要的?
Hee,
you can user the MKMapView delegate method:
you can check in that method wich location has been clicked with an if or switch statement.
Maby thats what you needed?