添加homeheadView

This commit is contained in:
2025-11-07 14:21:03 +08:00
parent f0542c11c8
commit 074596ebcb
7 changed files with 356 additions and 11 deletions

View File

@@ -0,0 +1,25 @@
//
// KBTopImageButton.h
// keyBoard
//
// 上图下文按钮:支持自定义图标尺寸与上下间距
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface KBTopImageButton : UIControl
/// 图标视图
@property (nonatomic, strong, readonly) UIImageView *iconView;
/// 文本标签
@property (nonatomic, strong, readonly) UILabel *textLabel;
/// 图片与文字之间的间距,默认 6
@property (nonatomic, assign) CGFloat spacing;
/// 图标尺寸,默认 44x44
@property (nonatomic, assign) CGSize iconSize;
@end
NS_ASSUME_NONNULL_END