Resolve the keyboard shelter problem with one line code !
pod 'VSInputView'
###Usage
####Must call this method in viewDidAppear
or viewDidAppear
, pass a UIScrollView(better is a UIScrollView) that you want it scroll.
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
[VSKeyboard keyboardAffectOnView:self.mainScrollView];
}
####Fetch the height of keyboard from a block timely.
/**
* will call the block when height of keyboard changed. Better be called in `ViewWillAppear` or `viewDidAppear`
*/
+ (void)keyboardHeightChanged:(HeightChangeBlock)block;