Skip to content

Instantly share code, notes, and snippets.

@Azuritul
Created October 4, 2014 08:34
Show Gist options
  • Save Azuritul/191372033608ab86fecb to your computer and use it in GitHub Desktop.
Save Azuritul/191372033608ab86fecb to your computer and use it in GitHub Desktop.
Change icon color programmatically
UIImage *icon = [[UIImage imageNamed:@"image_name.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
cell.imageView.image = icon;
cell.imageView.tintColor = [UIColor colorWithRed:98/255.0f green:126/255.0f blue:255/255.0f alpha:1.0];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment