-1

We have rightCalloutAccessoryView and leftCalloutAccessoryView for MKPinAnnotationView

but is there if we need to add a custom button to the entire popup bubble how to add it

the main requirement is i need to perform same action when we tap on Popup bubble just like disclser Button action.

//To add a discloser button to show route map
inView = (MKPinAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:defaultPinID];
        UIButton *detailBtn=[UIButton buttonWithType:UIButtonTypeDetailDisclosure];
        pinView.rightCalloutAccessoryView=detailBtn;
        [detailBtn addTarget:self action:@selector(showRoute:) forControlEvents:UIControlEventTouchUpInside];

enter image description here

How add a custom button to this popup buble

user2492409
  • 73
  • 10
  • No need to ask Same Question (http://stackoverflow.com/q/18308031/1603072) again and again. You can always edit the Question. – Bhavin Aug 19 '13 at 10:15

1 Answers1

0

for putting custom button on whole mapcallout you need to add custom mapcalloutview so search for that in google there were class available for the custom callout view and this way you can create your customcallout with your custom view and button.

D-eptdeveloper
  • 2,430
  • 1
  • 16
  • 30
  • This is what I already mentioned in my answer (http://stackoverflow.com/a/18308093/1603072) in same question by OP. – Bhavin Aug 19 '13 at 11:03