2025-10-28 10:18:10 +08:00
|
|
|
|
//
|
|
|
|
|
|
// KBKeyButton.h
|
|
|
|
|
|
// CustomKeyboard
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
@class KBKey;
|
|
|
|
|
|
|
|
|
|
|
|
/// 自定义键按钮(UIButton 子类):圆角外观,按下高亮效果。
|
|
|
|
|
|
@interface KBKeyButton : UIButton
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, strong) KBKey *key;
|
|
|
|
|
|
|
|
|
|
|
|
/// 配置基础样式(背景、圆角等)。创建按钮时调用。
|
|
|
|
|
|
- (void)applyDefaultStyle;
|
|
|
|
|
|
|
2025-10-28 20:11:40 +08:00
|
|
|
|
/// 根据选中/高亮等状态刷新外观
|
|
|
|
|
|
- (void)refreshStateAppearance;
|
|
|
|
|
|
|
2025-10-28 10:18:10 +08:00
|
|
|
|
@end
|