- (IBAction)removeKeyboardOpen your view in Interface Builder, create new custom full screen UIButton to cover everything, select UITextFields and UIButtons (etc.) one by one and "Send to Front" via Layout menu. Connect UIButton "Touch Up Inside" to your callback and that's it.
{
[textField1 resignFirstResponder];
[textField2 resignFirstResponder];
}
Nice, easy, simple, fast - what more can you ask for!
I'm doing exactly that in many of my UIViews with text fields for Ultimate Password Manager...
ReplyDelete