Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Build a Text-Input Box Whose Height Increases As You Type #28

Closed
jverkoey opened this issue Aug 2, 2011 · 4 comments
Closed

Build a Text-Input Box Whose Height Increases As You Type #28

jverkoey opened this issue Aug 2, 2011 · 4 comments

Comments

@jverkoey
Copy link
Owner

jverkoey commented Aug 2, 2011

This control should behave identically to the Messages app. As you enter text the height of the label should increase in order to accommodate the text.

Configurable settings:

  • Send on enter or send button embedded in the control
  • Max height

This control would likely be called NIAutoResizingTextView.

@rogchap
Copy link
Contributor

rogchap commented Aug 3, 2011

I recently used this in a project which may help:

http://www.hanspinckaers.com/multi-line-uitextview-similar-to-sms

and also added a placeholder label, (and combined it with TTStyle to make it look good).

@jverkoey
Copy link
Owner Author

jverkoey commented Aug 3, 2011

Looks simple enough. We should consider contacting Hans and asking if it would be ok to absorb his project into Nimbus. We could heavily document it ourselves if he's not interested in adding it himself.

@diederich
Copy link

This fork just appeared in my github rss: https://github.com/hboon/GrowingTextView (via TheRealKerni)

@jverkoey
Copy link
Owner Author

jverkoey commented Aug 4, 2011

Sweet! Thanks for the heads up. Glad to see this problem has already been tackled many times before.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants