0

The answers here a from objective c which I can not read: How to tint the background images of an UIButton programmatically and dynamically?

I am curious if there is a way to apply a tint color to an UIButton's background image. For the UIButton and the imageView itself it is easy. The background image does however not have the option tintColor.

J. Doe
  • 12,159
  • 9
  • 60
  • 114
  • check https://gist.github.com/alexruperez/90f44545b57c25b977c4 – hbk Aug 07 '17 at 20:56
  • 1
    *from objective c which I can not read* Did you even try? The accepted answer is mostly straight C calls to Core Graphics. And it really doesn't take much imagination to look at a name like `setTintColor:` in Objective-C code and find [the corresponding thing](https://developer.apple.com/documentation/uikit/uibutton/1624025-tintcolor) in the UIKit Swift documentation. – Caleb Aug 07 '17 at 21:09

0 Answers0