You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)finished {
BOOL presenting = [[anim valueForKey:@"presenting"] boolValue];
if (presenting && finished) {
if ([_delegate respondsToSelector:@selector(calloutViewDidAppear:)])
[_delegate calloutViewDidAppear:(id)self];
}
else if (!presenting && finished) {
[self removeFromParent];
[self.layer removeAnimationForKey:@"dismiss"];
if ([_delegate respondsToSelector:@selector(calloutViewDidDisappear:)])
[_delegate calloutViewDidDisappear:(id)self];
}
}
This delegate callback checks for finished, I don't think it should. Our use case is we are changing the callout visible on the map when the map isn't the frontmost view on the screen, when this happens iOS is optimizing the animation and calling this delegate with finished NO. This means the previous callout is never removed from the parent and will intercept any subsequent touches.
The text was updated successfully, but these errors were encountered:
I just ran into the same issue on an iPad, with a modal view controller on top of the map.
Also, but perhaps unrelated, the callout takes a very long time (>1sec) to be presented after a modal view controller was shown.
This delegate callback checks for finished, I don't think it should. Our use case is we are changing the callout visible on the map when the map isn't the frontmost view on the screen, when this happens iOS is optimizing the animation and calling this delegate with finished
NO
. This means the previous callout is never removed from the parent and will intercept any subsequent touches.The text was updated successfully, but these errors were encountered: