Objective C: How to create a multi-line UITextField?

Viewed 87261

Possible Duplicate:
How to create a multiline UITextfield?

How can I implement a multiple line textfield like what I see in the iPhone messaging app?

enter image description here

It seems like the once the length of input exceeds the length, a second line will be auto created.

EDIT: Updated to clarify my challenges in using a UITextView

For me, I would like to model the feel and look of the UITextView to that as shown below. I am not sure how I can do it with UITextView as suggested. For example

1) How to expand the box dynamically if my text needs to overflow to next line

2) How to add the border and styling as shown below

3) How to attach the text box right above the keyboard (instead of in the view)

I know that Instagram have this as well, if someone can point me to the correct direction, that will be great. Thanks in advnce

enter image description here

2 Answers
Related