views:

632

answers:

1

I could get the keyboard to work but on a UITextView but some how the new line key doesn't show up.

please help me

thanks

+1  A: 

Set the (UIKeyboardType)keyboardType and (UIReturnKeyTYpe) returnKeyType The options are documented here

http://developer.apple.com/iPhone/library/documentation/UIKit/Reference/UITextInputTraits%5FProtocol/Reference/UITextInputTraits.html#//apple%5Fref/occ/intf/UITextInputTraits

if you are building in code.

If you are using IB then just go to the first inspector panel and set the TextInputTraits

Andiih
That's right, but the important caveat that might trip you up is, depending on how you set things up, you'll probably need to handle sending the newline character to the UITextView yourself.
Gordon Worley