修改每日任务跳转房间出错
This commit is contained in:
@@ -113,13 +113,28 @@ QXRoomUserInfoViewDelegate
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
NSInteger count = 0;
|
||||
for (int i = 0; i < marr.count; i++) {
|
||||
UIViewController *vc = marr[i];
|
||||
if ([vc isKindOfClass:[QXRoomViewController class]]){
|
||||
count++;
|
||||
}
|
||||
if ([vc isKindOfClass:[QXRoomViewController class]] && (i == marr.count-2)) {
|
||||
[marr removeObject:vc];
|
||||
break;
|
||||
self.navigationController.viewControllers = marr;
|
||||
}
|
||||
}
|
||||
if (count>=2) {
|
||||
for (int i = 0; i < marr.count; i++) {
|
||||
UIViewController *vc = marr[i];
|
||||
if ([vc isKindOfClass:[QXRoomViewController class]]) {
|
||||
[marr removeObject:vc];
|
||||
self.navigationController.viewControllers = marr;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[self playHWDMP4];
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
[[QXGiftPlayerManager shareManager] startPlay];
|
||||
|
||||
@@ -923,6 +923,7 @@ NSInteger maxMessageCount = 20;
|
||||
}
|
||||
-(void)initSubviews{
|
||||
self.bgView = [[UIView alloc] init];
|
||||
self.bgView.backgroundColor = UIColor.clearColor;
|
||||
[self.contentView addSubview:self.bgView];
|
||||
[self.bgView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.mas_equalTo(16);
|
||||
@@ -1017,10 +1018,14 @@ NSInteger maxMessageCount = 20;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
-(void)layoutSubviews{
|
||||
[super layoutSubviews];
|
||||
[self.bgView addRoundedCornersWithRadius:8];
|
||||
}
|
||||
-(void)loadBubble{
|
||||
if ([self.message.FromUserInfo.chat_bubble isExist]) {
|
||||
self.bubbleImageView.backgroundColor = UIColor.clearColor;
|
||||
self.bgView.backgroundColor = UIColor.clearColor;
|
||||
// self.bubbleImageView.image = [[UIImage imageNamed:@"chat_bubble2"] resizableImageWithCapInsets:UIEdgeInsetsMake(30, 40, 40, 40) resizingMode:(UIImageResizingModeStretch)];;
|
||||
[self.bubbleImageView sd_setImageWithURL:[NSURL URLWithString:self.message.FromUserInfo.chat_bubble] placeholderImage:nil options:SDWebImageRetryFailed completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
|
||||
image = [image resizableImageWithCapInsets:UIEdgeInsetsMake(40, 40, 40, 40) resizingMode:(UIImageResizingModeStretch)];
|
||||
@@ -1048,7 +1053,8 @@ NSInteger maxMessageCount = 20;
|
||||
make.top.mas_equalTo(11);
|
||||
}];
|
||||
self.bubbleImageView.image = nil;
|
||||
self.bubbleImageView.backgroundColor = messageBubbleColor;
|
||||
self.bubbleImageView.backgroundColor = UIColor.clearColor;
|
||||
self.bgView.backgroundColor = messageBubbleColor;
|
||||
}
|
||||
}
|
||||
-(NSMutableArray *)iconViewArray{
|
||||
|
||||
Reference in New Issue
Block a user