Quote:
Originally Posted by nacho3d
Hi, i'm looking info about MapView an Annotations.
What i can't find is:
1) If i put 10 Annotations in my map, how can i take it out?
2) How can i know some info about an annotation when is pressed in this method:
|
There are 2 methods that can help: removeAnnotation, which removes a single annotation, and removeAnnotations, which will remove all annotations in an array.
An annotation view is a UIView, so you should be able to create a custom annotation view type and implement a -touchesBegan method for your custom annotation view.
I thought I remembered that there was a way to be notified automatically when the user clicks an annotation view, but I don't see it in looking at the documentation.