添加功能组件

This commit is contained in:
2025-10-28 15:18:12 +08:00
parent 2f2f20cfc2
commit a2b51189aa
4 changed files with 60 additions and 13 deletions

View File

@@ -10,8 +10,20 @@
NS_ASSUME_NONNULL_BEGIN
/// 功能区顶部的Bar左侧4个按钮右侧3个按钮
@class KBFunctionBarView;
@protocol KBFunctionBarViewDelegate <NSObject>
@optional
/// 左侧 4 个按钮点击index: 0~3
- (void)functionBarView:(KBFunctionBarView *)bar didTapLeftAtIndex:(NSInteger)index;
/// 右侧 3 个按钮点击index: 0~2
- (void)functionBarView:(KBFunctionBarView *)bar didTapRightAtIndex:(NSInteger)index;
@end
@interface KBFunctionBarView : UIView
@property (nonatomic, weak, nullable) id<KBFunctionBarViewDelegate> delegate;
/// 左侧4个按钮懒加载创建等宽水平排布
@property (nonatomic, strong, readonly) NSArray<UIButton *> *leftButtons;