简体   繁体   English

解除自定义MKAnnotationView标注

[英]Dismissing Custom MKAnnotationView Callout

I am customizing the MKAnnotationView by using this 我使用这个来自定义MKAnnotationView

http://blog.asolutions.com/2010/09/building-custom-map-annotation-callouts-part-1/ http://blog.asolutions.com/2010/09/building-custom-map-annotation-callouts-part-1/

This works for single annotation. 这适用于单个注释。 However, I want to use this for the multiple annotations. 但是,我想将它用于多个注释。 But the problem is that I am not able to give it a behavior of the original SDK's Pop up. 但问题是我无法给出原始SDK弹出窗口的行为。 For instance, 例如,

  1. If you touch outside the pop up fades out. 如果你在外面触摸弹出淡出。

  2. Click on one pop up the previous pop up goes. 点击上一个弹出窗口中的一个弹出窗口。 Or click on the same pop up the nothing happens to the popUp. 或点击相同的弹出窗口,popUp没有任何反应。

How can I fix this? 我怎样才能解决这个问题?

请参阅自定义MKAnnotationView标注https://github.com/j4n0/callout的用法部分。添加另一个自定义注释需要您创建CalloutView的子类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM