Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.