Skip to content

Instantly share code, notes, and snippets.

@champierre
Created June 3, 2012 13:30
Show Gist options
  • 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