2
This commit is contained in:
@@ -6,21 +6,19 @@
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <FLAnimatedImage/FLAnimatedImage.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
/// 覆盖在 KBGuideVC 上方的“请选择自家键盘”蒙层
|
||||
/// - 左上角:返回箭头
|
||||
/// - 中间:播放 GIF 的区域(宽=屏幕宽,高=300)
|
||||
/// - 中间:播放引导视频的区域(宽=屏幕宽,高=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;
|
||||
|
||||
Reference in New Issue
Block a user