You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
890 B
35 lines
890 B
4 years ago
|
//
|
||
|
// TFKeyboardManager.h
|
||
|
// WXReader
|
||
|
//
|
||
|
// Created by 谢腾飞 on 2020/12/3.
|
||
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@interface TFKeyboardManager : NSObject
|
||
|
|
||
|
// 键盘高度改变
|
||
|
@property (nonatomic ,copy) void (^keyboardHeightChanged)(CGFloat keyboardHeight, CGFloat shouldMoveDistance, CGRect shouldMoveFrame);
|
||
|
// 输入框与键盘间距 default 10
|
||
|
@property (nonatomic ,assign) CGFloat spacingFromKeyboard;
|
||
|
// 是否添加键盘工具条 default YES
|
||
|
@property (nonatomic ,assign) BOOL showToolBar;
|
||
|
// 主移动视图
|
||
|
@property (nonatomic ,strong) UIView *adaptiveMovementView;
|
||
|
|
||
|
- (instancetype)initObserverWithAdaptiveMovementView:(UIView *)adaptiveMovementView;
|
||
|
|
||
|
- (void)startKeyboardObserver;
|
||
|
|
||
|
- (void)stopKeyboardObserver;
|
||
|
|
||
|
+ (void)hideKeyboard;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|