Не могу вспомнить, является ли пузырь выноски вложенным представлением annotationView, если должно работать следующее: если вы пишете код для iOS 4.0 и выше, вы можете использовать эти
- (void)mapView:(MKMapView *)mapView didDeselectAnnotationView:(MKAnnotationView *)annotView {
[mapView sendSubviewToBack:annotView];
}
- (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)annotView {
[mapView bringSubviewToFront:annotView];
}
В противном случае попробуйте реализовать внутри annotationView
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [touches anyObject];
CGPoint point = [touch locationInView:self];
if ([self pointInside:point withEvent:event]) {
UIView *mySuperview = self.superview;
while (mySuperview && ![mySuperview isKindOfClass:[MKMapView class]]) {
mySuperview = mySuperview.superview;
}
if (mySuperview) {
[mySuperview bringSubviewToFront:self];
}
}
}
Надеюсь, это поможет