tags:

views:

4354

answers:

2

I am devloping an application where user have to give write some information. For this purpose i need a textfield which is multiline (in general textfield is a single line).

As i'm googling i find a answer of using UITextView in stead of UITextfield for this purpose.

Any Suggestion?

A: 

Yes, a UITextView is what you're looking for. You'll have to deal with some things differently (like the return key) but you can add text to it, and it will allow you to scroll up and down if there's too much text inside.

This link has more details:

http://www.iphonedevhelp.com/2008/04/uitextview-vs-uitextfield.html

And this link has info about making a screen to enter data:

http://iphoneincubator.com/blog/windows-views/how-to-create-a-data-entry-screen

nevan
+3  A: 

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.

h4xxr