1

I know that there is another question with the same title, but none of them worked - especially this Question should solve the problem, but it is not. I set in Assets.xcassets, Render as 'Template Image' and tried to use awakeFromNib() or tintColorDidChange() in a subclass of UITableViewCell, even tried to use a white image with transparent background, but nothing works.

Original question: the tint color feature for an UIImageView inside of a UITableViewCell (with xib file) doesn't work. How to solve it? I use Xcode 10.1 and depolyment target is iOS 10 using Swift 4.2

Brian Hong
  • 930
  • 11
  • 15
  • is it working with this: https://stackoverflow.com/a/40938514/82813 – manikal Dec 26 '18 at 21:20
  • Oh, yes, I read it before but now I tried it and it works. Swift 4.2: `class TintImageView: UIImageView { override func didMoveToSuperview() { self.isHighlighted = true self.isHighlighted = false super.didMoveToSuperview() } }` – Brian Hong Dec 27 '18 at 01:07

0 Answers0