PDA

View Full Version : UITextView "return" produces a line break, now how to I also have a 'done' button?




springframework
Apr 3, 2008, 05:46 PM
I have to use the UITextView for allowing the user to edit a varying multiline text block.

The user hits return and gets a line break which is good, but there is no done button on the keyboard ... so the keyboard has no way of disappearing when the user is finished.

how has anyone else dealt with this?



iphoneGuy
Apr 3, 2008, 06:35 PM
I have to use the UITextView for allowing the user to edit a varying multiline text block.

The user hits return and gets a line break which is good, but there is no done button on the keyboard ... so the keyboard has no way of disappearing when the user is finished.

how has anyone else dealt with this?

You need to put the done button on your layout... Looks like you get one or the other....

springframework
Apr 4, 2008, 01:18 PM
so other people have just put a 'done' button in their layout somewhere? that seems a bit silly.

What I have now started doing to any screen that using the keyboard is put a UIVView at the very back, u can add gradients and lines to it giving your app a nice background. and then i add a listener so when they click anywhere on the background the keyboard disappears.

this seems better then a done button.

is the done button in the top corner standard practice for all current applications?

iphoneGuy
Apr 4, 2008, 01:22 PM
so other people have just put a 'done' button in their layout somewhere? that seems a bit silly.

What I have now started doing to any screen that using the keyboard is put a UIVView at the very back, u can add gradients and lines to it giving your app a nice background. and then i add a listener so when they click anywhere on the background the keyboard disappears.

this seems better then a done button.

is the done button in the top corner standard practice for all current applications?

The Edit/Done button seems to be the UI standard right now...