How to tell a rightCalloutAccessoryView has been touched for MapKit

Posted by iamdadude on Stack Overflow See other posts from Stack Overflow or by iamdadude
Published on 2010-04-09T12:40:11Z Indexed on 2010/04/09 12:43 UTC
Read the original article Hit count: 611

Filed under:
|
|

I have a MKAnnotationView being allocated with a DetailDisclosure button being displayed on the right side of the annotation. How would I go about knowing when a user clicked on the annotation button? This is what my code looks like right now -

UIButton *rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
pinView.rightCalloutAccessoryView = rightButton;
pinView.animatesDrop = YES;

Is there a built in method to detect when a accessory view has been touched? I'm guessing it would be like the UITableView methods, but I can't find anything. Thanks for any help.

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about iphone-sdk-3.0