Skip to content

extend UIViewController to make view auto adjust itself for the keyboard

Notifications You must be signed in to change notification settings

7heaven/KeyboardAdjustViewController

Repository files navigation

#KeyboardAdjustViewController

English version of README

在键盘弹出的时候自动调整布局来适应键盘,有以下几种形式:

  • KeyboardAdjustNone (不做任何变化)

keyboardadjustnone

  • KeyboardAdjustAlignBottom (键盘弹出的时候把view滑动到键盘顶部)

keyboardadjustalignbottom

  • KeyboardAdjustScaling (键盘弹出的时候把view缩小到键盘以外的剩余空间内)

  • KeyboardAdjustScrolling (键盘弹出的时候让view可以自由滚动)

keyboardadjustscrolling

Automatically adjust UIViewController's view for keyboard, with different style show as follow:
  • KeyboardAdjustNone (don't change anything)

keyboardadjustnone

  • KeyboardAdjustAlignBottom (push view to the top of the keyboard)

keyboardadjustalignbottom

  • KeyboardAdjustScaling (scale view to fit the remain space after keyboard pop up)
  • KeyboardAdjustScrolling (make view scrollable when keyboard shows)

keyboardadjustscrolling

About

extend UIViewController to make view auto adjust itself for the keyboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published