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

kerry/KBTextView

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
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

4 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.