修改了一些UI的问题
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#import "PLTimeUtil.h"
|
||||
#import "ClientConfig.h"
|
||||
#import <POP.h>
|
||||
#import "ThemeColor+Room.h"
|
||||
///Model
|
||||
#import "RoomInfoModel.h"
|
||||
#import "AttachmentModel.h"
|
||||
@@ -460,6 +461,15 @@ NSString * const kRoomShowTopicKey = @"kRoomShowTopicKey";
|
||||
|
||||
- (void)onRoomEntered {
|
||||
[[XPRoomMiniManager shareManager] resetLocalMessage];
|
||||
self.headerView.bubbleColor = self.hostDelegate.getRoomInfo.type == RoomType_MiniGame ? [UIColor colorWithWhite:1 alpha:0.2] : [ThemeColor messageBubbleColor];
|
||||
}
|
||||
|
||||
- (void)onRoomUpdate {
|
||||
///改变公屏的背景样式
|
||||
if (self.hostDelegate.getRoomInfo.hadChangeRoomType) {
|
||||
self.headerView.bubbleColor = self.hostDelegate.getRoomInfo.type == RoomType_MiniGame ? [UIColor colorWithWhite:1 alpha:0.2] : [ThemeColor messageBubbleColor];
|
||||
[self.messageTableView reloadData];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - ScrollViewDelegate
|
||||
@@ -523,6 +533,7 @@ NSString * const kRoomShowTopicKey = @"kRoomShowTopicKey";
|
||||
NSAttributedString* attr = [self.datasource objectAtIndex:indexPath.row];
|
||||
NSString *bubbleStr = [self.messageBubbles objectAtIndex:indexPath.row];
|
||||
cell.bubbleImageUrl = bubbleStr;
|
||||
cell.roomType = self.hostDelegate.getRoomInfo.type;
|
||||
cell.attributedString = attr;
|
||||
return cell;
|
||||
}
|
||||
|
Reference in New Issue
Block a user