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

How to blink a button iOS swift?

iOS flutter while run to iPhone it had the error - Cannot find type 'PhoneNumberKit' in scope