raaz raaz - 1 year ago 170
iOS Question

How to create a multiline UITextfield?

I am developing an application where user has to write some information. For this purpose I need a

which is multi-line (in general
is a single line).

As I'm Googling I find a answer of using
instead of
for this purpose.

Answer Source

UITextField is specifically one-line only.

Your Google search is correct, you need to use UITextView instead of UITextField for display and editing of multiline text.

In Interface Builder, add a UITextView where you want it and select the "editable" box. It will be multiline by default.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download