views:

443

answers:

0

I'm using the MapKit part of the iPhone SDK. According to the MKMapViewDelegate documentation the calloutAccessory event should handle taps on the annotation view. This works just fine as long as the callout view is a UIButton. I've tried to get it to work for a UISegmentedControl but I can't seem to get the event to fire.

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

I understand that the callout must be a UIControl -- it works fine for UIButton, or UISwitch, but not UISegmentedControl.

Has anyone else come across this problem? Is it a bug with the framework? Or what am I missing?