I\'m using a UITextField to show results of a calculation but I don\'t want the keyboard to appear when the user taps on the UIText
You can hide keyboard in UITextFieldDelegate method textFieldDidBeginEditing:(textField: UITextField) like below :
UITextFieldDelegate
textFieldDidBeginEditing:(textField: UITextField)
func textFieldDidBeginEditing:(textField: UITextField) { self.view.endEditing(true) }