添加二级评论多个的时候的逻辑,默认每次点击出现5条
This commit is contained in:
@@ -15,7 +15,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
typedef NS_ENUM(NSInteger, KBAIReplyFooterState) {
|
||||
KBAIReplyFooterStateHidden, // 无二级评论,不显示
|
||||
KBAIReplyFooterStateExpand, // 显示"展开x条回复"(折叠状态)
|
||||
KBAIReplyFooterStateCollapse // 显示"收起"(展开状态)
|
||||
KBAIReplyFooterStateLoadMore, // 显示"展开更多回复"(部分展开)
|
||||
KBAIReplyFooterStateCollapse // 显示"收起"(全部展开)
|
||||
};
|
||||
|
||||
/// 一级评论模型
|
||||
@@ -75,8 +76,9 @@ typedef NS_ENUM(NSInteger, KBAIReplyFooterState) {
|
||||
/// 获取当前 Footer 状态
|
||||
- (KBAIReplyFooterState)footerState;
|
||||
|
||||
/// 展开全部回复
|
||||
- (void)expandAllReplies;
|
||||
/// 加载更多回复(每次加载指定数量)
|
||||
/// @param count 本次加载的数量
|
||||
- (void)loadMoreReplies:(NSInteger)count;
|
||||
|
||||
/// 收起所有回复
|
||||
- (void)collapseReplies;
|
||||
|
||||
Reference in New Issue
Block a user