Skip to content

iOS base controller class for scrolling UITextFields up and down based on the keyboard hiding and showing.

Notifications You must be signed in to change notification settings

mondok/TextFieldScroller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TextFieldScroller

The BaseScrollController base controller is intended to do automatically scroll text fields so that the keyboard does not cover them while editing in an iOS application. The BaseScrollController also automatically resigns first responder.

Usage

In your UIViewController, inherit from BaseScrollController. In your UIView, add a scroll view and connect it to the scrollView outlet. Inside the scroll view, connect each textfield's delegate to the File's Owner. If you wish to override behavior, simply implement one of the following methods:

  • textFieldShouldReturn
  • textFieldDidBeginEditing
  • textFieldDidBeginEditing

More Information

https://developer.apple.com/library/ios/#documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/KeyboardManagement/KeyboardManagement.html

http://developer.apple.com/library/ios/#documentation/uikit/reference/UITextFieldDelegate_Protocol/UITextFieldDelegate/UITextFieldDelegate.html

About

iOS base controller class for scrolling UITextFields up and down based on the keyboard hiding and showing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published