swift - dismiss keyboard with a uiTextView -
I'm sure it is not difficult, but I key using back / a textview a keyboard, not textfield Even I have tried so far (which works with a textfield.) Thank you very much for any help! // PostTravelQuestion.swift class PostTravelQuestion: UIViewController, UITextViewDelegate {@IBAction func closepostpage (Sender: AnyObject) {dismissViewControllerAnimated (true perfection: zero)} @Iboutlet var postquestion: UITextView! Override funk viewDidload () {super.viewDidLoad () // Setup an additional after loading the view. Postquestion.delegate = self} self addDoneToolBarToKeyboard: self.textView / * func textViewShouldEndEditing (Text View: UITextView) - & gt; Bool {textView.resignFirstResponder () return true} * / / * TouchesBegan function overrides (touches: NSSet, withEvent event: UIEvent) {postquestion.resignFirstResponder () self.view.endEditing (right)} * / override function didReceiveMemoryWarning () { Super.didReceiveMemoryWarning () / any resources that can be reproduced....