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.

    func textFieldShouldReturn(_ textField: UITextField) -> Bool {
        self.view.endEditing(true)
        return false

    }

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

store cgpoint in userdefaults iOS swift