Skip to content

Instantly share code, notes, and snippets.

@ChrisDrit
Created December 2, 2010 02:57
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 ChrisDrit/724665 to your computer and use it in GitHub Desktop.
Save ChrisDrit/724665 to your computer and use it in GitHub Desktop.
Custom image position within a TableViews Cell
UIImageView *iconView = [[[UIImageView alloc] initWithFrame:CGRectMake(
50,
25,
24,
16
)] autorelease];
UIImage *iconImage = [UIImage imageNamed:@"eye.png"];
iconView.image = iconImage;
[[cell contentView] addSubview:iconView];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment