在多个视图的 dismissBanner 方法中新增日志输出,以便于调试和监控动画完成状态;在 RoomAnimationView 中新增 ensureDebugViewsExist 方法,确保调试视图的存在并优化调试信息的输出;在 inserBannerModelToQueue 方法中添加参数验证和调试信息,提升代码的可读性和调试能力。
This commit is contained in:
@@ -77,12 +77,16 @@
|
||||
}
|
||||
|
||||
- (void)dismissBanner {
|
||||
NSLog(@"🚨 GameUniversalBannerView dismissBanner 被调用");
|
||||
self.alreadyCancel = YES;
|
||||
[self pop_removeAllAnimations]; // 停止所有动画
|
||||
|
||||
[self popLeaveAnimation:^(bool finished) {
|
||||
NSLog(@"🚨 GameUniversalBannerView 动画完成,调用回调");
|
||||
if (self.completeDisplay) {
|
||||
self.completeDisplay();
|
||||
} else {
|
||||
NSLog(@"🚨 警告: completeDisplay 回调为空");
|
||||
}
|
||||
[self removeFromSuperview];
|
||||
}];
|
||||
|
Reference in New Issue
Block a user