summaryrefslogtreecommitdiff
path: root/platform/ios/app/MBXCustomCalloutView.m
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-05-16 11:23:45 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-04-25 00:18:57 -0700
commit7cc3928a19ffc40e2835264f1349dc7a07fd4017 (patch)
tree38cfa365bc77196be45787cbff7be555b4994031 /platform/ios/app/MBXCustomCalloutView.m
parent9d3269eaa36d929de6191e60d7b332919ae02cab (diff)
downloadqtlocation-mapboxgl-7cc3928a19ffc40e2835264f1349dc7a07fd4017.tar.gz
[ios] Made annotation callouts accessible
Via nfarina/calloutview#84, SMCalloutView is now accessible. Activating a focused annotation now shows its callout view and focuses its left accessory view, if present, or the title view. There is a “return to map” accessibility element for dismissing the callout view and restoring focus to the annotation on the map.
Diffstat (limited to 'platform/ios/app/MBXCustomCalloutView.m')
-rw-r--r--platform/ios/app/MBXCustomCalloutView.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/ios/app/MBXCustomCalloutView.m b/platform/ios/app/MBXCustomCalloutView.m
index 11ce86e76a..9edc00f6e9 100644
--- a/platform/ios/app/MBXCustomCalloutView.m
+++ b/platform/ios/app/MBXCustomCalloutView.m
@@ -59,6 +59,11 @@ static CGFloat const tipWidth = 10.0;
CGFloat frameOriginY = rect.origin.y - frameHeight;
self.frame = CGRectMake(frameOriginX, frameOriginY,
frameWidth, frameHeight);
+
+ if ([self.delegate respondsToSelector:@selector(calloutViewDidAppear:)])
+ {
+ [self.delegate performSelector:@selector(calloutViewDidAppear:) withObject:self];
+ }
}
- (void)dismissCalloutAnimated:(BOOL)animated