diff options
Diffstat (limited to 'platform/ios/app/MBXCustomCalloutView.m')
-rw-r--r-- | platform/ios/app/MBXCustomCalloutView.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/ios/app/MBXCustomCalloutView.m b/platform/ios/app/MBXCustomCalloutView.m index 8f9bd8ed40..9edc00f6e9 100644 --- a/platform/ios/app/MBXCustomCalloutView.m +++ b/platform/ios/app/MBXCustomCalloutView.m @@ -40,6 +40,11 @@ static CGFloat const tipWidth = 10.0; - (void)presentCalloutFromRect:(CGRect)rect inView:(UIView *)view constrainedToView:(UIView *)constrainedView animated:(BOOL)animated { + if ([self.delegate respondsToSelector:@selector(calloutViewWillAppear:)]) + { + [self.delegate performSelector:@selector(calloutViewWillAppear:) withObject:self]; + } + [view addSubview:self]; // prepare title label if ([self.representedObject respondsToSelector:@selector(title)]) @@ -54,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 |