添加底部view
This commit is contained in:
37
keyBoard/Class/Me/V/KBSkinBottomActionView.h
Normal file
37
keyBoard/Class/Me/V/KBSkinBottomActionView.h
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user