Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

11
  • 2
    this is the best and simple solution. Commented Nov 17, 2014 at 4:28
  • 6
    imageWithRenderingMode is too slow. In storyboard and image Assets. you can change this two also: Update the Render Mode to Template Image - thats a better solution Commented Oct 16, 2015 at 9:28
  • Perfect, now i use this method based in your code: + (UIImageView ) tintImageView: (UIImageView *)imageView withColor: (UIColor) color{ imageView.image = [imageView.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; [imageView setTintColor:color]; return imageView; } Commented Jun 6, 2016 at 13:25
  • is it better with image black ? Commented Jun 30, 2016 at 18:20
  • 2
    @Bruno image does not need to be black, no. Works with any colour. Commented May 17, 2017 at 10:04