在 SessionListViewController 中添加了对最近会话的日志输出。在 LuckyGiftWinningBannerView 和 BravoGiftBannerView 中引入了可配置的显示时间,注释掉了不再使用的代码。在 XPRoomFunctionContainerView 中优化了 hitTest 方法以增强用户交互体验,确保子视图的点击响应逻辑更加清晰。更新了 MicroView 中的表情加载逻辑,增加了对下载失败情况的处理。保持代码结构一致性。
This commit is contained in:
@@ -54,9 +54,14 @@ exitCurrentRoom:(void(^)(void))exit {
|
||||
[banner addNotification];
|
||||
[superView addSubview:banner];
|
||||
|
||||
NSInteger time = 3;
|
||||
//#if DEBUG
|
||||
// time = 3000;
|
||||
//#endif
|
||||
|
||||
@kWeakify(banner);
|
||||
[banner popEnterAnimation:^(BOOL finished) {
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(time * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
@kStrongify(banner);
|
||||
[banner popLeaveAnimation:^(bool finished) {
|
||||
if (banner.completeDisplay) {
|
||||
@@ -127,12 +132,13 @@ exitCurrentRoom:(void(^)(void))exit {
|
||||
self = [super initWithFrame:frame];
|
||||
if (self) {
|
||||
[self setupUI];
|
||||
UIButton *b = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
[self addSubview:b];
|
||||
[b mas_remakeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.mas_equalTo(self);
|
||||
}];
|
||||
[b addTarget:self action:@selector(handelTap) forControlEvents:UIControlEventTouchUpInside];
|
||||
self.userInteractionEnabled = NO;
|
||||
// UIButton *b = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
// [self addSubview:b];
|
||||
// [b mas_remakeConstraints:^(MASConstraintMaker *make) {
|
||||
// make.edges.mas_equalTo(self);
|
||||
// }];
|
||||
// [b addTarget:self action:@selector(handelTap) forControlEvents:UIControlEventTouchUpInside];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
Reference in New Issue
Block a user