{ "id": "154983", "key": "TIMOB-20422", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-02-18T02:00:43.000+0000", "created": "2016-02-18T01:46:36.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "17072", "name": "Release 5.1.2", "archived": false, "released": true, "releaseDate": "2016-01-12" } ], "issuelinks": [], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-02-18T02:00:43.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": "h6. Reproduce \r\nAccording to the docs page (http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iPhone.SystemButton)\r\nTi.UI.iPhone.SystemButton should be DEPRECATED, and we should use Ti.UI.iOS.SystemButton instead.But when doing test for this, Ti.UI.iOS.SystemButton is undefined, however, Ti.UI.iPhone.SystemButton works well.\r\n\r\nh6.Test Code\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor: 'white',\r\n});\r\n\r\nvar done = Ti.UI.createButton({\r\n\ttop: 20,\r\n\ttitle: 'Done', \r\n\tsystemButton: Ti.UI.iPhone.SystemButton.DONE;\r\n // systemButton: Ti.UI.iOS.SystemButton.DONE;\r\n}); \r\n\r\nwin.add(done);\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Ti.UI.iOS.SystemButton is undefined. ", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "TI SDK 5.1.2\r\nIOS 9.2", "comment": { "comments": [ { "id": "377160", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "The Ti.UI.iOS.SystemButton will go production in SDK 5.4.0, there is something wrong with doc. Close this as fixed. ", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2016-02-18T02:00:43.000+0000", "updated": "2016-02-18T02:00:43.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }