{ "id": "85373", "key": "TIMOB-7735", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-10-28T22:33:13.000+0000", "created": "2012-01-24T11:26:02.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "insert", "listview" ], "versions": [], "issuelinks": [ { "id": "34060", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "119661", "key": "AC-3231", "fields": { "summary": "added UITableViewCellEditingStyleInsert iOS API as styleInsert", "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" } }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-01-14T21:18:37.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": "iOS TableView objects already support delete style rows and supporting insert style rows is trivial.", "attachment": [ { "id": "25293", "filename": "Insert-Current-Results.png", "author": { "name": "evan", "key": "evan", "displayName": "Evan Borgstrom", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-24T11:26:02.000+0000", "size": 16423, "mimeType": "image/png" }, { "id": "25294", "filename": "Insert-Expected-Results.png", "author": { "name": "evan", "key": "evan", "displayName": "Evan Borgstrom", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-24T11:26:02.000+0000", "size": 16413, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Support Insert style rows in TableViews", "creator": { "name": "evan", "key": "evan", "displayName": "Evan Borgstrom", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "evan", "key": "evan", "displayName": "Evan Borgstrom", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "[INFO] Titanium SDK version: 1.8.0.1 (12/22/11 13:09 fbdc96f)\r\n[INFO] iPhone SDK version: 5.0\r\n", "comment": { "comments": [ { "id": "286420", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "TC-2892 has been resolved as a duplicate of this ticket but it contains useful information and a pull request that would be useful in the context of this ticket.\n\nBlog post: http://blog.codexlabs.com/blog/2013/08/31/uitableviewcelleditingstyleinsert-is-now-a-pull-request-for-titanium-mobile/\nCommunity pull request: https://github.com/appcelerator/titanium_mobile/pull/4636\nQ&A Discussion: https://developer.appcelerator.com/question/140226/add-row-row-in-editable-tableview", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-01T21:51:31.000+0000", "updated": "2014-01-01T21:51:31.000+0000" }, { "id": "312822", "author": { "name": "sophrinix", "key": "sophrinix", "displayName": "Andrew McElroy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "it seems like the momentum on this is dead. \r\nThis API is still current in iOS7 and there's no indication that iOS8 will deprecate it:\r\n\r\nhttps://developer.apple.com/library/ios/documentation/uikit/reference/UITableViewCell_Class/Reference/Reference.html\r\n\r\n\r\nMaybe at this point it would make more sense to just wrap the SWTableViewCell repo on github:\r\n\r\nhttps://github.com/CEWendel/SWTableViewCell", "updateAuthor": { "name": "sophrinix", "key": "sophrinix", "displayName": "Andrew McElroy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-08T15:14:10.000+0000", "updated": "2014-07-08T15:16:47.000+0000" }, { "id": "368016", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "We will not support the insert style on the legacy {{Ti.UI.TableView}}, but provide a solution for the usage inside the {{Ti.UI.ListView}} now.\r\n\r\nPR: https://github.com/appcelerator/titanium_mobile/pull/7355\r\n\r\nDemo code: \r\n{code}\r\nvar isEditing = false;\r\n \r\nvar btn = Ti.UI.createButton({\r\n title: \"Edit\"\r\n});\r\nvar win = Ti.UI.createWindow({\r\n rightNavButton: btn\r\n});\r\nvar nav = Ti.UI.iOS.createNavigationWindow({window:win});\r\nvar list = Ti.UI.createListView();\r\n \r\nvar section = Ti.UI.createListSection({\r\n items: [{\r\n properties: {\r\n title: \"Removeable Cell\",\r\n canEdit: true\r\n }\r\n },{\r\n properties: {\r\n title: \"Insertable Cell\",\r\n canInsert: true\r\n }\r\n }]\r\n});\r\n \r\nlist.addEventListener(\"delete\", function(e) {\r\n Ti.API.warn(\"Delete\");\r\n Ti.API.warn(e);\r\n})\r\n \r\nlist.addEventListener(\"insert\", function(e) {\r\n Ti.API.warn(\"Insert\");\r\n Ti.API.warn(e);\r\n \r\n e.section.insertItemsAt(e.itemIndex+1, [\r\n {\r\n properties: {\r\n title: \"New Cell\"\r\n }\r\n }\r\n ], {\r\n animationStyle: Ti.UI.iPhone.RowAnimationStyle.TOP\r\n });\r\n});\r\n \r\nbtn.addEventListener(\"click\", function() {\r\n isEditing = !isEditing;\r\n \r\n btn.setTitle(isEditing ? \"Done\" : \"Edit\");\r\n list.setEditing(isEditing);\r\n})\r\n \r\nlist.setSections([section]);\r\n \r\nwin.add(list);\r\nnav.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-27T19:52:19.000+0000", "updated": "2015-10-28T17:46:41.000+0000" }, { "id": "374606", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-01-14T21:17:52.000+0000", "updated": "2016-01-14T21:17:52.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }