{ "id": "109865", "key": "TIMOB-12783", "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": [ { "id": "15498", "description": "2013 Sprint 12 API", "name": "2013 Sprint 12 API", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15110", "description": "2013 Sprint 12", "name": "2013 Sprint 12", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-04T17:35:54.000+0000", "created": "2013-02-19T17:59:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "exalture", "module_tableview", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:42:54.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": "h1. Problem description\r\n\r\nWhen a TableView is editable, the swipe event is not fired; instead, swiping on the table row just lets you edit it.\r\n\r\nh1. Steps to reproduce\r\n\r\nUse the following code to test the issue. Changing 'editable' to 'false' fires the event.\r\n\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n backgroundColor: \"#FFF\",\r\n layout: \"vertical\",\r\n fullscreen: true\r\n});\r\n\r\nvar rows = [];\r\n\r\nfor (var i=0; i<10; i++) {\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\ttitle: \"Row \" + i\r\n\t});\r\n\r\n\trows.push(row);\r\n}\r\n\r\nvar table = Ti.UI.createTableView({\r\n\teditable: true,\r\n\tdata: rows\r\n});\r\n\r\ntable.addEventListener('swipe', function(e) {\r\n\talert(e);\r\n});\r\n\r\nwin1.add(table);\r\n\r\nwin1.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Swipe event not fired when TableView has property editable set to true", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "241133", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I tried with Motorola Zoom and Nexus S. Regardless of 'editable' flag, the 'swipe' event is fired.\r\n\r\nSDK 3.1.0", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-07T14:36:06.000+0000", "updated": "2013-03-07T14:36:06.000+0000" }, { "id": "245246", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The swipe event does not work on iOS.\r\n\r\nTi SDK 3.1.0.v20130402092426", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T20:14:37.000+0000", "updated": "2013-04-02T20:14:37.000+0000" }, { "id": "250589", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a property of iOS: When a row is editable, the native behavior is to have a swipe be a delete command. The native OS grabs this before we can.\n\nhttps://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITableViewCell_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006938\n\nNote that the transitions don't have an option to block this, natively. Will need to update docs for this.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-07T17:26:19.000+0000", "updated": "2013-05-07T17:26:19.000+0000" }, { "id": "251056", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Blain. Could you set up a doc PR for this update.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-05-09T17:45:32.000+0000", "updated": "2013-05-09T17:45:32.000+0000" }, { "id": "255862", "author": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR merged: https://github.com/appcelerator/titanium_mobile/pull/4301", "updateAuthor": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-06-04T17:35:30.000+0000", "updated": "2013-06-04T17:35:30.000+0000" }, { "id": "275385", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Swipe event is getting fired when editable property is set to true.\r\n\r\nVerified fix on:\r\nDevice : iPhone 5 , iOS version : 7.0\r\nSDK: 3.2.0.v20131016191202\r\nCLI version : 3.2.0\r\nOS : MAC OSX 10.8.4\r\nAlloy : 1.2.2\r\nAppcelerator Studio, build: 3.2.0.201310112258\r\nXCode : 5", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-10-17T06:53:05.000+0000", "updated": "2013-10-17T06:53:05.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }