Thursday, 17 January 2013

To hide keypad when touching return button in iOS




- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
    [textField resignFirstResponder];
    
    return YES;
    
}


Note: Remember to add uitextfielddelegate in interface