Skip to content

Resolve the keyboard shelter problem with one line code !

License

Notifications You must be signed in to change notification settings

visoon/VSKeyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VSKeyboard

Resolve the keyboard shelter problem with one line code !


Installation

pod 'VSInputView'




preview gif

image

###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;

About

Resolve the keyboard shelter problem with one line code !

Resources

License

Stars

Watchers

Forks

Packages

No packages published