[TIMOB-23565] iOS: TintColor for ImageView (Parity)
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-06-28T05:32:38.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.4.0 |
Components | iOS |
Labels | imageview, ios, parity, qe-5.4.0 |
Reporter | Hans Knöchel |
Assignee | Hans Knöchel |
Created | 2016-06-27T21:06:28.000+0000 |
Updated | 2016-06-28T20:33:43.000+0000 |
Description
Adding tintColor property to iOS using
UIImageRenderingModeAlwaysTemplate
Demo
/**
* TIMOB-23565
*
* Sets the initial tintColor to red, changes it to green after 2 seconds
* and removes the tintColor after another 2 seconds.
**/
var win = Ti.UI.createWindow();
var img = Ti.UI.createImageView({
tintColor: "red",
image: "images/appcelerator_small.png"
});
win.add(img);
setTimeout(function() {
img.setTintColor("green");
setTimeout(function() {
img.setTintColor(null);
},2000);
},2000);
win.open();
Adding parity for TIMOB-19912 using best-practices (
UIImageRenderingModeAlwaysTemplate
)PR: https://github.com/appcelerator/titanium_mobile/pull/8090
PR (5_4_X): https://github.com/appcelerator/titanium_mobile/pull/8092
CR and FT passed. PRs merged.
Verified as fixed,
tintColor
is now supported for ImageView element on iOS. Tested On: iPhone 6S (9.3.2) Device & Sim Mac OSX El Capitan 10.11.5 Ti SDK: 5.4.0.v20160627224205 Appc Studio: 4.7.0.201606220541 Appc NPM: 4.2.7-2 App CLI: 5.4.0-20 Xcode 7.3 Node v4.2.6 *Closing ticket.*