{ "id": "142140", "key": "TIMOB-18296", "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": "2014-12-30T17:32:49.000+0000", "created": "2014-12-30T04:58:58.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-3.5.0" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T17:15:23.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": "This is not a regression as the issue also occurs in 3.4.1 and 3.4.0.GA\r\n\r\nSteps to Reproduce:\r\n1. Create a project with code below and install the app on device\r\n2. Launch the app. A list view with three rows is shown. Each having a different accessory type (Detail, Disclosure, Checkmark)\r\n3. Click on the accessory in each row and check logs\r\n\r\nActual Result:\r\nFor row 2 and row 3 having accessory of types disclosure and checkmark, the logs show \"accessoryClicked:false\" even though it was clicked. For accessory type detail it shows true.\r\n\r\n{code}\r\nvar win=Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nvar listView = Ti.UI.createListView();\r\n\r\nvar tasks = [{\r\n id: 'trash',\r\n name: 'Take Out the Trash',\r\n icon: 'KS_nav_views.png',\r\n accessory: Ti.UI.LIST_ACCESSORY_TYPE_DETAIL\r\n}, {\r\n id: 'dishes',\r\n name: 'Do the Dishes',\r\n icon: 'KS_nav_views.png',\r\n accessory: Ti.UI.LIST_ACCESSORY_TYPE_DISCLOSURE\r\n}, {\r\n id: 'doggie',\r\n name: 'Walk the Dog',\r\n icon: 'KS_nav_views.png',\r\n accessory: Ti.UI.LIST_ACCESSORY_TYPE_CHECKMARK\r\n}];\r\n\r\nvar data = [];\r\nfor (var i = 0; i < tasks.length; i++) {\r\n data.push({\r\n properties: {\r\n itemId: tasks[i].id,\r\n title: tasks[i].name,\r\n image: tasks[i].icon,\r\n accessoryType: tasks[i].accessory,\r\n color: 'black'\r\n }\r\n });\r\n}\r\n\r\nvar section = Ti.UI.createListSection();\r\nsection.setItems(data);\r\nlistView.sections = [section];\r\nlistView.addEventListener('itemclick', function(e) {\r\n Ti.API.info(JSON.stringify(e));\r\n Ti.API.info('itemIndex' + JSON.stringify(e.itemIndex));\r\n});\r\nwin.add(listView);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Click on accessory not recognised in list view when clicked on disclosure or checkmark accessory type", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 3.5.0.v20141222103320\r\nStudio: 3.4.1.201410281743\r\nCLI: 3.4.1\r\nAlloy: 1.5.1\r\nDevice: iPad mini3 (v8.1), iPhone 6 simulator (v8.1)", "comment": { "comments": [ { "id": "337650", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is expected behavior. See\r\n\r\nhttps://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableViewCell_Class/index.html#//apple_ref/occ/instp/UITableViewCell/accessoryType", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-30T17:32:49.000+0000", "updated": "2014-12-30T17:32:49.000+0000" }, { "id": "413733", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T17:15:23.000+0000", "updated": "2017-03-20T17:15:23.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }