添加二级评论多个的时候的逻辑,默认每次点击出现5条

This commit is contained in:
2026-01-16 19:29:42 +08:00
parent 7fa124d45f
commit ac0d9584d8
5 changed files with 57 additions and 21 deletions

View File

@@ -67,6 +67,14 @@
forState:UIControlStateNormal];
break;
}
case KBAIReplyFooterStateLoadMore: {
self.actionButton.hidden = NO;
NSInteger remaining = comment.totalReplyCount - comment.displayedReplies.count;
title = [NSString stringWithFormat:@"展开更多回复(%ld条", (long)remaining];
[self.actionButton setImage:[UIImage systemImageNamed:@"chevron.down"]
forState:UIControlStateNormal];
break;
}
case KBAIReplyFooterStateCollapse: {
self.actionButton.hidden = NO;
title = @"收起";