Skip to content

Instantly share code, notes, and snippets.

@mluton
Created January 29, 2012 05:34
Show Gist options
  • Save mluton/1697428 to your computer and use it in GitHub Desktop.
Save mluton/1697428 to your computer and use it in GitHub Desktop.
iOS: Setting a Background Image on a UIView
UIColor *background = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"bkg.png"]];
self.view.backgroundColor = background;
[background release];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment