{ "id": "63929", "key": "TIMOB-3297", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-08-28T23:00:53.000+0000", "created": "2011-04-15T03:41:39.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "parity", "supportTeam" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "14728", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "85354", "key": "TIDOC-251", "fields": { "summary": "APIDoc: iOS UI.Switch - click event not currently supported. Possibly others", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T21:26:10.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
Environment: iOS 4.2, Ti SDK 1.6, Mac OS
\r\nIn the above environment, the switch click event does not fire.\r\nThe following code demonstrates the issue. The same code works fine\r\non Android.
\r\n\r\nTi.UI.setBackgroundColor('#226');\r\n \r\nvar win1 = Ti.UI.createWindow({ \r\n title:'this is window1',\r\n backgroundColor:'#fff'\r\n});\r\n \r\nvar switch1 = Ti.UI.createSwitch({\r\n value:false,\r\n top:30\r\n});\r\n \r\nswitch1.addEventListener('click', function(e) {\r\n Ti.API.info('the switch has been switched to: '+e.source.value);\r\n});\r\n \r\nwin1.add(switch1);\r\nwin1.open();
\r\n