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

Discussion in 'Mac Programming' started by springframework, Apr 3, 2008.

  1. macrumors member

    Joined:
    Mar 31, 2008
    #1
    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?
     
  2. macrumors member

    Joined:
    Oct 26, 2007
    Location:
    [[NSLocation alloc] initWithCity: Chicago]
    #2
    You need to put the done button on your layout... Looks like you get one or the other....
     
  3. thread starter macrumors member

    Joined:
    Mar 31, 2008
    #3
    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?
     
  4. macrumors member

    Joined:
    Oct 26, 2007
    Location:
    [[NSLocation alloc] initWithCity: Chicago]
    #4
    The Edit/Done button seems to be the UI standard right now...
     

Share This Page