Created
December 7, 2016 01:55
-
-
Save SatoTakeshiX/02750aa78d6d51c828e7ad29f38db31b to your computer and use it in GitHub Desktop.
UIImageViewの画像を無理やり色を変える方法。これを使えばデザイナーに頼まなくても色変更可能 #CodePiece
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@IBOutlet weak var imageView: UIImageView! { | |
didSet { | |
imageView.image = UIImage.init(named: "photo1")?.withRenderingMode(.alwaysTemplate) | |
imageView.tintColor = UIColor.white | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment