views:

568

answers:

1

I have annotations on a mapview and a callout with a button on each. What I need to do is grab properties from this callout, ie. the title, but logging this line:

NSLog(@"%@", mapView.selectedAnnotations);

returns <AddressAnnotation: 0x1bdc60> which obviously gives me no useful info...

My question is, how can I access the properties of a selected annotation callout?

A: 

mapView.selectedAnnotations returns an array of anotations. You should access its items to get info.

Vladimir
right, I am able to see that, but i need to access the information about an individual Annotation, like its title.
rson
I'm using MapView / annotations / annotations views since quite a long time and came accross the fact (bug ?) that selectedAnnotations on a MKMapView instance returns an array of AnnotationView ?!!!! Didn't you experienced the same (strange) behavior ?
yonel
No, it seems it always returned annotations for me
Vladimir