When I touch my textfields in the iPhone simulator, the keyboard cursor does not appear. I do not know why. These are the only functions related to my keyboard in my view controller.
// hides keyboard when user touches outside of text field override func touchesBegan(touches: NSSet, withEvent event: UIEvent) { self.view.endEditing(true) } // hides keyboard when user presses 'return' func textFieldShouldReturn(textField: UITextField) -> Bool { if (textField === emailField) { emailField.resignFirstResponder() } else if (textField === usernameField) { usernameField.resignFirstResponder() } else { passwordField.resignFirstResponder() } return true }