Files
keyboard/keyBoard/Class/Me/V/KBSkinBottomActionView.h
2025-11-10 15:29:21 +08:00

38 lines
970 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.

//
// 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;
/// 点击回调(也可直接 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