公屏小喇叭放在消息列表顶部
This commit is contained in:
@@ -101,7 +101,8 @@ NSString * const kRoomShowTopicKey = @"kRoomShowTopicKey";
|
||||
- (void)initSubViewConstraints {
|
||||
[self.messageTableView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.mas_equalTo(self).offset(15);
|
||||
make.top.bottom.right.mas_equalTo(self);
|
||||
make.bottom.right.mas_equalTo(self);
|
||||
make.top.mas_equalTo(self.trumpetView.mas_bottom);
|
||||
}];
|
||||
|
||||
[self.messageTipsBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
@@ -114,7 +115,7 @@ NSString * const kRoomShowTopicKey = @"kRoomShowTopicKey";
|
||||
make.top.mas_equalTo(self);
|
||||
make.left.mas_equalTo(15);
|
||||
make.right.mas_equalTo(0);
|
||||
make.height.mas_equalTo(32);
|
||||
make.height.mas_equalTo(0);
|
||||
}];
|
||||
}
|
||||
|
||||
@@ -367,6 +368,12 @@ NSString * const kRoomShowTopicKey = @"kRoomShowTopicKey";
|
||||
} else {
|
||||
dispatch_sync(dispatch_get_main_queue(), ^{
|
||||
self.trumpetView.hidden = YES;
|
||||
[self.trumpetView mas_updateConstraints:^(MASConstraintMaker *make) {
|
||||
make.height.mas_equalTo(0);
|
||||
}];
|
||||
[self.messageTableView mas_updateConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.mas_equalTo(self.trumpetView.mas_bottom);
|
||||
}];
|
||||
});
|
||||
|
||||
if (self->_trumpetTimer != nil) {
|
||||
@@ -520,7 +527,12 @@ NSString * const kRoomShowTopicKey = @"kRoomShowTopicKey";
|
||||
- (void)createTrumpetAnimation:(NSDictionary *)attatchment {
|
||||
self.trumpetView.data = attatchment;
|
||||
self.trumpetView.hidden = NO;
|
||||
|
||||
[self.trumpetView mas_updateConstraints:^(MASConstraintMaker *make) {
|
||||
make.height.mas_equalTo(32);
|
||||
}];
|
||||
[self.messageTableView mas_updateConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.mas_equalTo(self.trumpetView.mas_bottom).mas_offset(4);
|
||||
}];
|
||||
POPBasicAnimation *animation2 = [POPBasicAnimation animationWithPropertyNamed:kPOPViewFrame];
|
||||
animation2.beginTime = CACurrentMediaTime();
|
||||
animation2.duration = 0.1;
|
||||
|
Reference in New Issue
Block a user