添加底部view

This commit is contained in:
2025-11-10 15:29:21 +08:00
parent fac5e7657c
commit 97316c7989
6 changed files with 243 additions and 6 deletions

View File

@@ -0,0 +1,37 @@
//
// 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