添加homeheadView
This commit is contained in:
25
keyBoard/Class/Home/V/KBTopImageButton.h
Normal file
25
keyBoard/Class/Home/V/KBTopImageButton.h
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user