点击@人消息后,底部还有消息时显示提示按钮

This commit is contained in:
chenguilong
2022-05-09 18:42:19 +08:00
parent 6c54b3e6e2
commit 16907ee727

View File

@@ -123,6 +123,9 @@ NSString * const kRoomShowTopicKey = @"kRoomShowTopicKey";
[self.locationArray removeObjectAtIndex:0];
self.atCount -= 1;
[self.atTipBtn setTitle:[NSString stringWithFormat:@"有%lu人@你", (unsigned long)self.locationArray.count] forState:UIControlStateNormal];
if (self.locationArray.count == 0) {
self.atTipBtn.hidden = YES;
}
} else {
self.atTipBtn.hidden = YES;
}
@@ -192,6 +195,9 @@ NSString * const kRoomShowTopicKey = @"kRoomShowTopicKey";
[self.locationArray removeObjectAtIndex:0];
self.atCount -= 1;
[self.atTipBtn setTitle:[NSString stringWithFormat:@"有%lu人@你", (unsigned long)self.locationArray.count] forState:UIControlStateNormal];
if (self.locationArray.count == 0) {
self.atTipBtn.hidden = YES;
}
} else {
self.atTipBtn.hidden = YES;
}