30 lines
964 B
C
30 lines
964 B
C
|
|
//
|
|||
|
|
// KBKeyboardMaskView.h
|
|||
|
|
// keyBoard
|
|||
|
|
//
|
|||
|
|
// Created by Mac on 2025/11/27.
|
|||
|
|
//
|
|||
|
|
|
|||
|
|
#import <UIKit/UIKit.h>
|
|||
|
|
#import <FLAnimatedImage/FLAnimatedImage.h>
|
|||
|
|
|
|||
|
|
NS_ASSUME_NONNULL_BEGIN
|
|||
|
|
/// 覆盖在 KBGuideVC 上方的“请选择自家键盘”蒙层
|
|||
|
|
/// - 左上角:返回箭头
|
|||
|
|
/// - 中间:播放 GIF 的区域(宽=屏幕宽,高=300)
|
|||
|
|
/// - 点击任意空白区域:回调给外部(用于激活输入框)
|
|||
|
|
@interface KBKeyboardMaskView : UIView
|
|||
|
|
@property (nonatomic, strong, readonly) UIButton *backButton;
|
|||
|
|
@property (nonatomic, strong, readonly) FLAnimatedImageView *gifView;
|
|||
|
|
|
|||
|
|
/// 点击蒙层空白时回调(不包括 backButton)
|
|||
|
|
@property (nonatomic, copy) void (^tapHandler)(void);
|
|||
|
|
|
|||
|
|
/// 更新内部 GIF 与键盘的相对位置,保证不被遮挡
|
|||
|
|
- (void)updateForKeyboardHeight:(CGFloat)kbHeight
|
|||
|
|
duration:(NSTimeInterval)duration
|
|||
|
|
curve:(UIViewAnimationOptions)curve;
|
|||
|
|
@end
|
|||
|
|
|
|||
|
|
NS_ASSUME_NONNULL_END
|