2
This commit is contained in:
29
keyBoard/Class/Search/V/KBSearchSectionHeader.h
Normal file
29
keyBoard/Class/Search/V/KBSearchSectionHeader.h
Normal file
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// KBSearchSectionHeader.h
|
||||
// keyBoard
|
||||
//
|
||||
// 通用区头:左侧标题,右侧可选垃圾桶按钮。
|
||||
// 用于“历史搜索”和“推荐皮肤”两个 section。
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface KBSearchSectionHeader : UICollectionReusableView
|
||||
|
||||
/// 标题
|
||||
@property (nonatomic, strong, readonly) UILabel *titleLabel;
|
||||
/// 右侧垃圾桶按钮(仅历史搜索使用)
|
||||
@property (nonatomic, strong, readonly) UIButton *trashButton;
|
||||
|
||||
/// 配置标题与是否显示垃圾桶
|
||||
- (void)configWithTitle:(NSString *)title showTrash:(BOOL)showTrash;
|
||||
|
||||
/// 清除按钮点击回调
|
||||
@property (nonatomic, copy) void(^onTapTrash)(void);
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
Reference in New Issue
Block a user