iOS returnKey in Keyboard to hide the keyboard
Solution:
The below code is used for hide the keyboard when the user touches the UITextField and started editing after that click the return Key.
The below code is used for hide the keyboard when the user touches the UITextField and started editing after that click the return Key.
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
self.view.endEditing(true)
return false
}
Comments
Post a Comment