在多个视图的 dismissBanner 方法中新增日志输出,以便于调试和监控动画完成状态;在 RoomAnimationView 中新增 ensureDebugViewsExist 方法,确保调试视图的存在并优化调试信息的输出;在 inserBannerModelToQueue 方法中添加参数验证和调试信息,提升代码的可读性和调试能力。

This commit is contained in:
edwinQQQ
2025-08-13 18:16:46 +08:00
parent 9206b4be45
commit 3da0148ad1
4 changed files with 165 additions and 1 deletions

View File

@@ -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];
}];