Remove Keyboard from view after typing txtField

// MARK: delegtes
   
    func textFieldShouldReturn(textField: UITextField) -> Bool {
        textField.resignFirstResponder()
        return true
    }
   
   
    override func touchesBegan(touches: NSSet, withEvent event: UIEvent) {
       
        self.view.endEditing(true)
    }
   

Tags: