 <p>First check all outlet connection are correct or not.</p> <p>Now change if condition to <code>isFirstResponder()</code></p> <pre><code>func textFieldShouldReturn(textField: UITextField!) -&gt; Bool { if (userNameSignUpTextField.isFirstResponder()){ userNameSignUpTextField.resignFirstResponder() passwordSignUpTextField.becomeFirstResponder() } else if(passwordSignUpTextField.isFirstResponder()) { passwordSignUpTextField.resignFirstResponder() emailSignUpTextField.becomeFirstResponder() } return true } </code></pre> <p>Hope it will help you</p>