Skip to content

Instantly share code, notes, and snippets.

@uhhuhyeah
Created March 23, 2010 22:00
Show Gist options
  • Save uhhuhyeah/341729 to your computer and use it in GitHub Desktop.
Save uhhuhyeah/341729 to your computer and use it in GitHub Desktop.
// Example of using a custom image as a view ?
customView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0, 320, 480)];
customView.image = [UIImage imageNamed:@"Foo.png"];
[window addSubview: customView];
[window bringSubviewToFront: customView];
// Process
// Make an UIImage view that's the size and shape you want, then load the precisely sized png into it.
// For things like UITableViewCell, perhaps create this view, then sub view?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment