Last active
September 17, 2016 17:27
-
-
Save shrop/23a457da6688bfe3972a0fa98b1bad5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@IBAction func submitButton(_ sender: AnyObject) { | |
// Set the greeting intro. | |
let greetingIntroText = "Hi, " | |
// Set the complete greeting for display. | |
textGreetingLabel.text = greetingIntroText + nameField.text! | |
nameField.text = "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment