didClickCalloutAccessoryButtonForGraphic not being called

Discussion created by jonesra on Jul 12, 2011
Latest reply on Jul 17, 2011 by jonesra
I am using a View-based map project, in XCode 3 with v1.8 of the ESRI library.

The MapViewController is not receiving the didClickCalloutAccessoryButtonForGraphic event, even though the delegates are all set. Another project almost identical, the event fires.
Here are some snippets:

@interface MonctonMapViewController : UIViewController <AGSIdentifyTaskDelegate, AGSMapViewLayerDelegate,
                                                        AGSMapViewTouchDelegate, UINavigationControllerDelegate,
                                                        AGSMapViewCalloutDelegate, AGSInfoTemplateDelegate>

- (void)viewDidLoad {
    [super viewDidLoad];

// setup the location controller
self.mapView.gps.autoPan = YES;

self.tolerance = [[NSNumber alloc] initWithInt:1];
self.featuresSucceeded = 0;

//set the map view delegate
// self.mapView.mapViewDelegate = self;
self.mapView.touchDelegate = self;
self.mapView.layerDelegate = self;
self.mapView.calloutDelegate = self;
self.mapView.showMagnifierOnTapAndHold = YES;
   //show callout
   [self.mapView showCalloutAtPoint:self.mapPoint];

//show the attributes if accessory button is clicked
- (void)mapView:(AGSMapView *)mapView didClickCalloutAccessoryButtonForGraphic:(AGSGraphic *)graphic {

UIAlertView *info = [[UIAlertView alloc] initWithTitle:@"Alert"];
[info show];
[info release];