UIImageView ignores tintColor with PDF vector template images
Originator: | alexisgallagher |
|
Number: | rdar://18448072 |
Date Originated: | 2014-09-24 |
Status: | Open |
Resolved: | No |
Product: | iOS8, Xcode6 |
Product Version: | iOS8, Xcode6 |
Classification: | Bug |
Reproducible: | Always |
Summary:
UIImageView is supposed to use its own tint color to color template images, that is, UIImages that are set to UIRenderingModeAlwaysTemplate
If you create such images by using an Xcode6 image set with PDFs vector images, then UIImageView does not color the images properly.
Steps to Reproduce:
1. Run the example app
Expected Results:
2. left column should be tinted red, the right column white, as based on the tint color of the left and right uiimageview in the cells
Actual Results:
2. most image views show the original color of the image, and correctly re-color it only sporadically after scrolling.
Version:
iOS 8.0
Notes:
https://github.com/algal/TemplateImagesBrokenDemo
Configuration:
iPhone 5, iPhone 6
Duplicates
Comments
ag9zfm9wZW5yYWRhci1ocmRyEgsSBVJhZGFyGICAgMDn6LwJDA
Please note:
Reports posted here will not necessarily be seen by Apple.
All problems should be submitted at bugreport.apple.com before they are posted here.
Please only post information for Radars that you have filed yourself, and please do
not include Apple confidential information in your posts. Thank you!
Still required
For all that come here and imagine that this bug could no longer be the case since it's now 5 years old: Yes, the bug still exists, the workaround still solves it.
SO discussion, with another workaround
http://stackoverflow.com/questions/25997993/how-to-use-template-rendering-mode-in-xcode-6-interface-builder/26042893#26042893
This problem exists only for UIImageViews, not for UIButtons
As a result, one workaround is to use not UIImageView, but custom-type UIButtons with userInteractionEnabled=false.