cocoa touch - iPhone UITextField: how to insert new line by the return key? -


I want to get a return / new line by hitting the return key on the keyboard of UIPPStField. I have found out that textFieldShouldReturn is called.

But how do I insert a carriage return in the text area?

You want to use a UITextView instead. UITextFields are for single line input while UITextViews supports multi-line input.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -