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
I get dismiss animation, but the dismiss animation will not complete, and the present animation will start. After some seconds, I think that after dismiss animation's duration, the calloutView will remove from super view:
- (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)finished {
BOOL presenting = [[anim valueForKey:@"presenting"] boolValue];
if (presenting) {
if ([_delegate respondsToSelector:@selector(calloutViewDidAppear:)])
[_delegate calloutViewDidAppear:self];
}
else if (!presenting) {
[self removeFromParent]; // it will be remove, although I present it.
[self.layer removeAnimationForKey:@"dismiss"];
if ([_delegate respondsToSelector:@selector(calloutViewDidDisappear:)])
[_delegate calloutViewDidDisappear:self];
}
}
How should I do for it?
The text was updated successfully, but these errors were encountered:
Why are you dismissing callout with animation then immediately presenting it? If you want to dismiss callout, wait until it's gone, then present it again, you might use the delegate method -calloutViewDidDisappear - wait until that's called, and then present the new callout.
I think I ran into this issue as well, if I'm understanding Whirlwind correctly. If a callout is already showing, tapping to view another callout caused the first to disappear and the second to appear just for a moment. Fixed by setting delay to 0 in mapView:didDeselectAnnotationView:.
Hello, it's been a while so I'm closing this now. I've also verified myself that it's possible to dismiss a callout without animation then immediately re-present it with animation and it works OK, so I think that's the best way to go.
the code:
I get dismiss animation, but the dismiss animation will not complete, and the present animation will start. After some seconds, I think that after dismiss animation's duration, the calloutView will remove from super view:
How should I do for it?
The text was updated successfully, but these errors were encountered: