Project: titanium
Issue TIMOB-23275: Windows: Deprecate Ti.UI.View.enabled, rename to touchEnabled
While reviewing a windows ticket, implementing the enabled property for view elements, it was found that it was not implemented for iOS. This should be fixed to achieve parity between android & windows. *TEST CODE:* {code:java} var win = Ti.UI.createWindow({}); var view1 = Ti.UI.createView({ backgroundColor: "Magenta", enabled: true, left: 0, top: 50, height: 100, width: 100 }); view1.addEventListener('click', function() { alert("CLICKED! 1"); }); var view2 = Ti.UI.createView({ backgroundColor: "green", enabled: false, top: 50, left: 200, height: 100, width: 100 }); view2.addEventListener('click', function() { alert("CLICKED! 2"); }); win.add(view1); win.add(view2); win.open() {code} h2. Steps to Reproduce 1. Create a default classic mobile project. 2. Apply test code above to app.js file. 3. Deploy app to iOS simulator / device. 4. After launching the app, click / tap on left view. 5. Click / tap on right view. h2. Actual Result Left view *enabled* property is set to {{true}} : Alert appears when clicked. Right view *enabled* property is set to {{false}} : Alert appears when clicked. h2. Expected Result. Left view *enabled* property is set to {{true}} : Alert *should* appear when clicked. Right view *enabled* property is set to {{false}} : Alert *should NOT* appear when clicked.
Story points: 2