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

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift