{ "id": "132572", "key": "AC-823", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-10T08:00:20.000+0000", "created": "2014-07-03T10:38:00.000+0000", "labels": [ "TCSupport", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:06.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "h4. Problem Description \r\nI have a table View with sections and rows, after the UI has been rendered I wanna delete some sections and rows.\r\n\r\nBut when I call the function deleteRow after I called function deleteSection, the View stopped to be rendered and no other operation is possible on tableview.\r\n\r\nI can call either deleteSection or deleteRow calling both in a row raise this issue.\r\n\r\nh4. Test Code \r\n{code}\r\nvar win = Ti.UI.createWindow({title:\"Click Edit ->\"});\r\nvar data = [];\r\nvar navWin = Titanium.UI.iOS.createNavigationWindow({\r\n window: win\r\n});\r\n \r\n \r\nvar tableViewSectionOne = Ti.UI.createTableViewSection();\r\nvar tableViewSectionTwo = Ti.UI.createTableViewSection();\r\nvar tableViewSectionThree = Ti.UI.createTableViewSection();\r\nvar tableViewSectionFour = Ti.UI.createTableViewSection();\r\n \r\n \r\nvar tableView = Ti.UI.createTableView({\r\n backgroundColor:'#FFF',\r\n rowHeight: 100,\r\n zIndex:1\r\n});\r\n \r\nvar deleteSection = Ti.UI.createButton({\r\n systemButton: Titanium.UI.iPhone.SystemButton.EDIT,\r\n});\r\n \r\nvar dataSectionOne = [\r\n Ti.UI.createTableViewRow({title:\"Click a row to remove\",color:'#A00',height:50}),\r\n Ti.UI.createTableViewRow({title:\"Click Editbutton to remove a section and noting will work\",color:'#C00',height:50}),\r\n Ti.UI.createTableViewRow({title:\"Row 3\",color:'#F00',height:50})\r\n];\r\n \r\nvar dataSectionTwo = [\r\n Ti.UI.createTableViewRow({title:\"Row 4\",color:'#0A0',height:50}),\r\n Ti.UI.createTableViewRow({title:\"Row 5\",color:'#0B0',height:50}),\r\n Ti.UI.createTableViewRow({title:\"Row 6\",color:'#0F0',height:50})\r\n];\r\n \r\nvar dataSectionThree = [\r\n Ti.UI.createTableViewRow({title:\"Row 7\",color:'#00A',height:50}),\r\n Ti.UI.createTableViewRow({title:\"Row 8\",color:'#00B',height:50}),\r\n Ti.UI.createTableViewRow({title:\"Row 9\",color:'#00F',height:50})\r\n];\r\n \r\nvar dataSectionFour = [\r\n Ti.UI.createTableViewRow({title:\"Row 10\",color:'#E00',height:50}),\r\n Ti.UI.createTableViewRow({title:\"Row 11\",color:'#C00',height:50}),\r\n Ti.UI.createTableViewRow({title:\"Row 12\",color:'#B00',height:50})\r\n];\r\n \r\n \r\ndata.push(tableViewSectionOne);\r\n \r\nfor(var i in dataSectionOne){\r\n tableViewSectionOne.add(dataSectionOne[i]);\r\n}\r\n \r\ndata.push(tableViewSectionTwo);\r\n \r\nfor(var i in dataSectionTwo){\r\n tableViewSectionTwo.add(dataSectionTwo[i]);\r\n}\r\n \r\n \r\ndata.push(tableViewSectionThree);\r\n \r\nfor(var i in dataSectionThree){\r\n tableViewSectionThree.add(dataSectionThree[i]);\r\n}\r\n \r\n \r\ndata.push(tableViewSectionFour);\r\n \r\nfor(var i in dataSectionFour){\r\n tableViewSectionFour.add(dataSectionFour[i]);\r\n}\r\n \r\ntableView.setData(data);\r\n \r\n \r\ndeleteSection.addEventListener('click', function(){\r\n tableView.deleteSection(0);\r\n});\r\n \r\nwin.rightNavButton = deleteSection;\r\n \r\ntableView.addEventListener('click', function(e){\r\n tableView.deleteRow(e.source);\r\n});\r\n \r\n \r\nwin.add(tableView);\r\n \r\nnavWin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "After deleting section from TableView on ios view stop responding to any action", "creator": { "name": "m.bahl", "key": "m.bahl", "displayName": "Markus", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "m.bahl", "key": "m.bahl", "displayName": "Markus", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Ti SDK: 3.2.3\r\nios: 7.1\r\n", "comment": { "comments": [ { "id": "314935", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hi,\r\n\r\nWe have tested this issue with given test code and it's working good as we expected.\r\n \r\nh5. Test Environment\r\n \r\nMac OS X 10.9.4\r\nTi CLI 3.3.0\r\nTitanium SDK: 3.3.0.GA \r\nIOS 7.1 \r\n \r\nThanks.\r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-19T06:40:35.000+0000", "updated": "2014-08-10T07:59:46.000+0000" }, { "id": "317856", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Fixed in 3.3.0.GA", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-10T08:00:20.000+0000", "updated": "2014-08-10T08:00:20.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }