Sneha
Sneha

Reputation: 1444

Dismissing Custom MKAnnotationView Callout

I am customizing the MKAnnotationView by using this

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. 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.

How can I fix this?

Upvotes: 4

Views: 732

Answers (1)

Jano
Jano

Reputation: 63707

See Customize the MKAnnotationView callout and the usage section of https://github.com/j4n0/callout Adding another custom annotation requires you to create a subclass of CalloutView.

Upvotes: 1

Related Questions