// // KBKeyButton.h // CustomKeyboard // #import @class KBKey; /// 自定义键按钮(UIButton 子类):圆角外观,按下高亮效果。 @interface KBKeyButton : UIButton @property (nonatomic, strong) KBKey *key; /// 配置基础样式(背景、圆角等)。创建按钮时调用。 - (void)applyDefaultStyle; /// 根据选中/高亮等状态刷新外观 - (void)refreshStateAppearance; /// 根据当前皮肤与按键标识,应用图标和文字显隐等细节 - (void)applyThemeForCurrentKey; @end