 <ol> <li><p>You didn't set the tag of alertView. so <code>if (alertView.tag == 1)</code> will be false</p></li> <li><p>You can set <code>alertViewStyle = PlainTextInput</code>, the it will have a Textfield</p></li> </ol> <p>About alertViewStyle, check the document you will get:</p> <pre><code>enum UIAlertViewStyle : Int { case Default case SecureTextInput case PlainTextInput case LoginAndPasswordInput } </code></pre> <p>So change as below, your code should work:</p> <pre><code>@IBAction func Alert(sender: UIButton) { var alertView:UIAlertView = UIAlertView() alertView.title = "Alert!" alertView.message = "Greg is Cool" alertView.delegate = self alertView.addButtonWithTitle("OK") alertView.addButtonWithTitle("Okay") alertView.tag = 1 alertView.alertViewStyle = .PlainTextInput alertView.show() } func alert(alertView: UIAlertView!, clickedButtonAtIndex buttonIndex: Int) { switch buttonIndex { default: if (alertView.tag == 1) { NameLabel.text = "I get it!" } } } </code></pre>