Skip to content

Instantly share code, notes, and snippets.

@ejknapp
Created June 15, 2010 18:12
Show Gist options
  • Select an option

  • Save ejknapp/439455 to your computer and use it in GitHub Desktop.

Select an option

Save ejknapp/439455 to your computer and use it in GitHub Desktop.
Set the text of a UILabel from code.
1. Open the view controller .m file.
2. Uncomment the "viewDidLoad" method.
3. Set the text property of the label.
self.myLabel.text = @"Hello, world.";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment