Search code examples
iphonecocoa-touchiphone-softkeyboard

Dismiss iphone keyboard


I am trying to recreate something similar to the popup keyboard used in safari.

alt text

I am able to visually reproduce it by placeing a toolbar over my view and the appropriate buttons, however i cant figure out any way to dismiss the keyboard once the user has touched the done button.


Solution

  • Have you tried:

    [viewReceivingKeys resignFirstResponder];
    

    where viewReceivingKeys is the UIView that is receiving the text input?