Project: titanium
Issue TIMOB-23565: iOS: TintColor for ImageView (Parity)
Adding tintColor property to iOS using {{UIImageRenderingModeAlwaysTemplate}} h2. Demo {code:javascript} /** * 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(); {code}
Story points: 2