DESCRIPTION
When both the "backgroundImage" and the "backgroundSelectedImage" are set in iOS button, the customized button won't change from one to the other. I added a click event to see if the event is being fired, and it's fired just fine, but you won't see the animation.
Repro Steps:
Step 1: add the attached image to your Resources folder
Step 2: run the code below
Step 3: click the button
var win = Titanium.UI.createWindow();
var button = Ti.UI.createButton({
width:207,
height:80,
top:0,
left:0,
backgroundColor:'#000',
color:'#000',
backgroundSelectedImage:'testButton2.png',
backgroundImage: 'testButton.png',
});
button.addEventListener('click',function(){
Ti.API.info('clicked button');
});
win.add(button);
win.open();
Verified that the issue is fixed by TIMOB-7034.
closing based on Max's comments and linked bug being closed.
Closing bug. This bug is a duplicate of TIMOB-7034