ioskeyboardfocusuidatepickeriphone-keypad

ios remove keyboard


I have some text edit fields, and also a button to show a uidatepicker.. if I go to the uitextedit, the keyboard appears, but when I click the button, the keyboard is still here... how can I remove it?

thanks!


Solution

  • You need to use resignFirstResponder, see this similar question.

    [myTextField resignFirstResponder];