6
6

More than 5 years have passed since last update.

UIImageViewに設定している画像の色を変える

Last updated at Posted at 2014-10-24

以下のようにすると、UIImageViewに設定している画像の色を
UIButton(type=system).tintColorのように変えることができます。

UIImageViewに設定している画像の色を変える
    self.myImageView.image = [[UIImage imageNamed:@"whiteImage"]
                            imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
    self.myImageView.tintColor = [UIColor blueColor];
6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6