close input screen

Discussion in 'iOS Programming' started by bobisa, Nov 10, 2010.

  1. bobisa macrumors newbie

    Joined:
    Nov 8, 2010
    #1
    i have made a app that ask the user to input a reference number. when he has finish to type, how the keyboard can go away ?

    i want to be able to show what is under the keyboard
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
  3. cnstoll macrumors 6502

    Joined:
    Aug 29, 2010
    #3
    Make sure the "Done" button for the keyboard resigns first responder. You can do that with the textFieldShouldReturn method.

    You can also modify the keyboard that gets displayed for your text field if you want it to display a "Done" button.

    Look up the UITextField "keyboardType" property in the documentation.
     

Share This Page