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

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift