Files
keyboard/keyBoard/Class/Home/V/HomeHotCell.h
2025-12-04 19:12:34 +08:00

30 lines
763 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// HomeHotCell.h
// keyBoard
//
// 自定义 cell左侧序号与圆形头像占位标题/副标题,右侧加入按钮。
//
#import "BaseCell.h"
#import "KBCharacter.h"
NS_ASSUME_NONNULL_BEGIN
@interface HomeHotCell : BaseCell
/// 当前展示的排行榜角色模型
@property (nonatomic, strong, nullable) KBCharacter *character;
/// 点击右侧加号/勾选按钮的回调,由外部 VC 处理网络逻辑
@property (nonatomic, copy, nullable) void (^onTapAction)(void);
/// 旧的配置方法(不再推荐使用),内部会转成 character 赋值
- (void)configWithRank:(NSInteger)rank
title:(NSString *)title
subtitle:(NSString *)sub
joined:(BOOL)joined;
@end
NS_ASSUME_NONNULL_END