Skip to content

Instantly share code, notes, and snippets.

@kashfifahim
Created January 24, 2018 07:15
Show Gist options
  • Save kashfifahim/9d8a470754b009dbbda9f48d7e3e9aa8 to your computer and use it in GitHub Desktop.
Save kashfifahim/9d8a470754b009dbbda9f48d7e3e9aa8 to your computer and use it in GitHub Desktop.
func updateLabels( ) {
targetLabel.text = String(targetValue)
//here we are updating the text of the label
// and because the label holds string type
// we are converting the Int to String
// then assigning it to the text property of
// our targetLabel
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment