I want to have the same kind of behaviour as iMessage has for its input. I don't know in what end I should start, so I'll describe what I want to do and you can (I hope) give me suggestions on how to do this. I code in Swift so I'd like it to be in Swift if you provide any code.
What I want
I want to have a button on my screen (not an UITextView
or UITextField
) which upon press shows the keyboard, and where the keyboard has a UIToolBar
with an UITextView
in it. When I type in the UITextView
the ToolBar/TextView expands up until a certain point then it starts to scroll.
How on earth do I do this? I've been trying for an hour but I can't seem to trigger the keyboard unless I have a UITextView
or UITextField
to set as becomeFirstResponder()
. Furthermore I don't understand how I'm supposed to attach a UITextView
to the UIToolBar
once I get the keyboard up. I have added the UIToolBar
, but not the UITextField
.
Cheers