Skip to content

A sub class of UIView that contains a UITextView and a UIButton that moves according to keyboard show/hide/frame change. This arrangement is mostly used in chat applications.

Notifications You must be signed in to change notification settings

kerry/KBTextView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KBTextView

A sub class of UIView that contains a UITextView and a UIButton that moves according to keyboard show/hide/frame change. This arrangement is mostly used in chat applications.

Screenshots

Alt text

Installation instructions

  1. Just copy "ContentView.h" and "ContentView.m" files in your project.

  2. Connect the required NSLayoutConstraints and IBOutlets as shown in the ViewController.m and intialise the ContentView class.

#Info

Tested in iOS 7.1 and above but not iOS 9

#Points to note

  1. You can make the ViewController the delegate of UITextView (currently the delegate is ContentView).
  2. If you programmatically change the text of UITextView and its delegate method does not get called, you may have to call it manually.

#NOTE

The code for textview is inspired from an already existing library, however, I forgot the name of the repository as it was too long ago. Will insert a link, if I find it again.

About

A sub class of UIView that contains a UITextView and a UIButton that moves according to keyboard show/hide/frame change. This arrangement is mostly used in chat applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published