views:

13

answers:

1

im trying to get the index of the annotation when the disclosure button is tapped using the

  • (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control {

i have been pointed to the control.tag property, but whenever i use NSLog(@"tag value from control: %d", control.tag); it always returns 0.

anyone know how i can get the index of the annotation

A: 

tag (default) value is 0 unless you assign something else to it. Have you set another value to the tag property somewhere?

Vladimir
ok, think i was getting confused a little, i was reading that each annotation already had its own tag. thanks anyway
richard Stephenson