{ "id": "133362", "key": "TIMOB-17355", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-07-08T22:21:30.000+0000", "created": "2014-07-18T06:51:20.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "TCSupport", "systemButton" ], "versions": [ { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-08-02T22:20:07.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": "h4. Problem Description\r\n\r\nThe following code demonstrates that the {{systemButton}} property cannot be changed after creation. This is not documented and of course it would be even better if it *could* be changed.\r\n\r\n\r\nh5. Testing Environment:\r\nTitanium SDK: 3.2.3.GA and 3.3.0.GA\r\nTitanium CLI: 3.3.0\r\nOS X Version: 10.9.3\r\nIOS Simulator: 7.1 \r\n \r\nh5. TEST CODE:\r\napp.js\r\n{code}\r\nvar btn = Ti.UI.createButton({\r\nsystemButton : Ti.UI.iPhone.SystemButton.ADD\r\n});\r\n \r\nvar win = Ti.UI.createWindow({\r\nbackgroundColor : 'white',\r\nrightNavButton : btn,\r\ntitle : 'Click the button'\r\n});\r\n \r\nvar nw = Ti.UI.iOS.createNavigationWindow({\r\nwindow : win\r\n});\r\n \r\nbtn.addEventListener('click', function(e) {\r\n//console.debug('clicked but not changed');\r\nconsole.info('clicked but not changed');\r\nbtn.systemButton = Ti.UI.iPhone.SystemButton.ACTION;\r\n});\r\n \r\nnw.open();\r\n {code}\r\n \r\nh5. STEPS TO REPRODUCE:\r\n- Create a simple project.\r\n- Update this code in app.js\r\n- Run this with testing environment.\r\n- Click to the systemButton or ADD button.\r\n \r\nh5. TESTING RESULT:\r\n \r\nThere is no any change in the systemButton or ADD button.\r\n ", "attachment": [], "flagged": false, "summary": "iOS: SystemButton cannot be changed after creation", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "Titanium SDK: 3.2.3.GA and 3.3.0.GA\r\nTitanium CLI: 3.3.0\r\nOS X Version: 10.9.3\r\nIOS Simulator: 7.1 \r\n ", "closedSprints": [ { "id": 1058, "state": "closed", "name": "2018 Sprint 16 SDK", "startDate": "2018-07-29T22:26:06.486Z", "endDate": "2018-08-12T22:26:00.000Z", "completeDate": "2018-08-13T17:38:16.757Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "315154", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Thanks for your report! The Platform team will set the priority. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-21T23:20:02.000+0000", "updated": "2014-07-21T23:20:02.000+0000" }, { "id": "318395", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduce \r\nTitanium Command-Line Interface, \r\nCLI version 3.3.0, \r\nTitanium SDK version 3.3.0.GA \r\niOS SDK: 7.1 \r\niOS iPhone Simulator: 7.1", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-13T07:18:10.000+0000", "updated": "2014-08-13T07:18:10.000+0000" }, { "id": "423727", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "There is an internal constraint to not allow the system-button to be changed after creation. It is advised to change the button instead.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-07-08T22:21:30.000+0000", "updated": "2017-07-08T22:21:30.000+0000" }, { "id": "439746", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing old \"Won't fix\" tickets. If you disagree, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-02T22:20:07.000+0000", "updated": "2018-08-02T22:20:07.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }