|
@@ -525,10 +525,10 @@ typedef NS_ENUM(NSInteger, LIVEPAGE) {
|
|
[self.bottomView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
[self.bottomView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
make.left.right.mas_equalTo(self.livePageView);
|
|
make.left.right.mas_equalTo(self.livePageView);
|
|
if (@available(iOS 11.0, *)) {
|
|
if (@available(iOS 11.0, *)) {
|
|
- make.bottom.mas_equalTo(self.livePageView.mas_safeAreaLayoutGuideBottom).offset(-10);
|
|
|
|
|
|
+ make.bottom.mas_equalTo(self.livePageView.mas_safeAreaLayoutGuideBottom).offset(-5);
|
|
} else {
|
|
} else {
|
|
// Fallback on earlier versions
|
|
// Fallback on earlier versions
|
|
- make.bottom.mas_equalTo(self.livePageView.mas_bottom).offset(-10);
|
|
|
|
|
|
+ make.bottom.mas_equalTo(self.livePageView.mas_bottom).offset(-5);
|
|
}
|
|
}
|
|
make.height.mas_equalTo(44);
|
|
make.height.mas_equalTo(44);
|
|
}];
|
|
}];
|
|
@@ -536,8 +536,8 @@ typedef NS_ENUM(NSInteger, LIVEPAGE) {
|
|
[self.messageContentView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
[self.messageContentView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
make.left.mas_equalTo(self.livePageView.mas_left);
|
|
make.left.mas_equalTo(self.livePageView.mas_left);
|
|
make.right.mas_equalTo(self.livePageView.mas_right);
|
|
make.right.mas_equalTo(self.livePageView.mas_right);
|
|
- make.bottom.mas_equalTo(self.bottomView.mas_top).offset(-10);
|
|
|
|
- make.height.mas_equalTo(270);
|
|
|
|
|
|
+ make.bottom.mas_equalTo(self.bottomView.mas_top).offset(-5);
|
|
|
|
+ make.height.mas_equalTo(180);
|
|
}];
|
|
}];
|
|
[self.livePageView addSubview:self.inputBar];
|
|
[self.livePageView addSubview:self.inputBar];
|
|
[_inputBar setBackgroundColor: [UIColor whiteColor]];
|
|
[_inputBar setBackgroundColor: [UIColor whiteColor]];
|
|
@@ -548,7 +548,7 @@ typedef NS_ENUM(NSInteger, LIVEPAGE) {
|
|
[self.messageContentView addSubview:self.conversationMessageTableView];
|
|
[self.messageContentView addSubview:self.conversationMessageTableView];
|
|
[self.conversationMessageTableView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
[self.conversationMessageTableView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
make.left.top.mas_equalTo(self.messageContentView);
|
|
make.left.top.mas_equalTo(self.messageContentView);
|
|
- make.width.mas_equalTo(240);
|
|
|
|
|
|
+ make.width.mas_equalTo(KPortraitWidth);
|
|
make.bottom.mas_equalTo(self.messageContentView.mas_bottom);
|
|
make.bottom.mas_equalTo(self.messageContentView.mas_bottom);
|
|
}];
|
|
}];
|
|
|
|
|
|
@@ -1782,6 +1782,9 @@ typedef NS_ENUM(NSInteger, LIVEPAGE) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
|
|
+ if (self.pageType == LIVEPAGE_PREVIEW) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
ANIMATIONTYPE type = isJoinRoom ? ANIMATIONTYPE_JOIN : ANIMATIONTYPE_RUSH;
|
|
ANIMATIONTYPE type = isJoinRoom ? ANIMATIONTYPE_JOIN : ANIMATIONTYPE_RUSH;
|
|
self.animationView = [[LiveAnimationView alloc] initWithTitle:message animationType:type];
|
|
self.animationView = [[LiveAnimationView alloc] initWithTitle:message animationType:type];
|
|
[self.view addSubview:self.animationView];
|
|
[self.view addSubview:self.animationView];
|