Skip to content

Instantly share code, notes, and snippets.

@champierre
Created June 3, 2012 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save champierre/2863505 to your computer and use it in GitHub Desktop.
Save champierre/2863505 to your computer and use it in GitHub Desktop.
image = UIImage.imageNamed("icon.png")
@image_view = UIImageView.alloc.initWithImage(image)
@image_view.frame = CGRectMake(0, 0, 36, 36)
view.addSubview(@image_view)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment