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];
How add a custom button to this popup buble