2025-11-10 15:29:21 +08:00
|
|
|
|
//
|
|
|
|
|
|
// KBSkinBottomActionView.h
|
|
|
|
|
|
// keyBoard
|
|
|
|
|
|
//
|
|
|
|
|
|
// 底部操作条(圆角胶囊样式),支持点击。用于皮肤详情页下载/购买。
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
|
|
/// 底部操作条(45 高,左右圆角)。
|
|
|
|
|
|
/// 结构: [ Title [coinIcon] [price] ] 居中对齐
|
|
|
|
|
|
@interface KBSkinBottomActionView : UIControl
|
|
|
|
|
|
|
|
|
|
|
|
/// 标题,例如:@"Download"
|
|
|
|
|
|
@property (nonatomic, copy) NSString *titleText;
|
|
|
|
|
|
|
|
|
|
|
|
/// 价格/金币数,例如:@"20"
|
|
|
|
|
|
@property (nonatomic, copy) NSString *priceText;
|
|
|
|
|
|
|
|
|
|
|
|
/// 图标(可选),例如金币图
|
|
|
|
|
|
@property (nonatomic, strong, nullable) UIImage *iconImage;
|
|
|
|
|
|
|
2025-12-11 16:39:22 +08:00
|
|
|
|
/// 是否展示价格区域(隐藏后仅显示标题)
|
|
|
|
|
|
@property (nonatomic, assign) BOOL showsPrice;
|
|
|
|
|
|
|
2025-11-10 15:29:21 +08:00
|
|
|
|
/// 点击回调(也可直接 addTarget 使用)
|
|
|
|
|
|
@property (nonatomic, copy, nullable) void (^tapHandler)(void);
|
|
|
|
|
|
|
|
|
|
|
|
/// 配置便捷方法
|
|
|
|
|
|
- (void)configWithTitle:(nullable NSString *)title price:(nullable NSString *)price icon:(nullable UIImage *)icon;
|
|
|
|
|
|
|
|
|
|
|
|
/// 建议固定高度
|
|
|
|
|
|
+ (CGFloat)preferredHeight;
|
|
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|