Try this.
-(MKAnnotationView *)mapView:(MKMapView *)mV viewForAnnotation:
(id <MKAnnotation>)annotation {
MKPinAnnotationView *pinView = (MKPinAnnotationView*)[self.mapview dequeueReusableAnnotationViewWithIdentifier:@"Pin"];
if(pinView == nil)
{
pinView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"Pin"] ;
}
UIButton *detailButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 250, 100)];
[detailButton addTarget:self action:@selector(addToListButtonTapped:) forControlEvents:UIControlEventTouchUpInside];
[detailButton setSelected:NO];
pinView.leftCalloutAccessoryView = detailButton;
[pinView setImage:[UIImage imageNamed:@"locationPin.png"]];
[pinView setFrame:CGRectMake(0, 0, 55, 55)];
pinView.animatesDrop = NO;
pinView.canShowCallout = YES;
// [pinView setSelected:YES animated:YES];
return pinView;
}
-(void)addToListButtonTapped:(id)sender
{
int temp =2;
AnnotationViewController *ann1 =[sender superview];
NSString *str = ann1.title;
NSLog(@"button tapped");
NSLog(@"%@",str);
}