Skip to content

supermarin/Smart-Scroll-View

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a component which can automatically scroll your scrollview when the keyboard comes up and covers your input field(s). It figures out which textField you have clicked on, and places it on the visible area. Check out the SampleProject!

Images coming soon...

Instalation

- Clone / Download the repo
- Copy the SmartScrollViewController folder inside your XCode project (drag n drop)
- Start using it!

Usage

- #import the SmartScrollViewController.h
- Extend the SmartScrollViewController in your ViewController.h
- In the InterfaceBuilder, wire the scrollView outlet (if not using IB, self.scrollView = theScrollView)

Instead of you, it will:

- Add the scrollView as a subview.
- Set the scrollView's content size and frame size
- Automatically scroll when the keyboard pops up, and scroll back
- Release the view if using a non-arc environment
- Resign the text field's first responder by default, if you press Return

iPhone / iPad support

It works for both iPhone/iPad, and all you have to do is extend the controller and wire your scrollView outlet in the Interface Builder.

In progress..

The support for the action sheets, pickers, etc

About

When your keyboard pops up and covers the text field (s), it knows where it needs to scroll.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published