{ "id": "143525", "key": "AC-1357", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-01-29T05:51:54.000+0000", "created": "2015-01-26T19:42:39.000+0000", "labels": [ "api", "ios", "iphone" ], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-03-08T07:37:46.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "h2. Problem\r\n\r\nWhen ADD system button is added to anything other than toolbar/navbars, it appears as INFO !!!\r\n\r\nIn the following test case and attached image capture, you may notice that I created two ADD buttons, one for view, the other for toolbar. Both are ' Ti.UI.iPhone.SystemButton.ADD '. The icon is clearly the INFO button! However, it is the only possible way to add system buttons to view and this feature is quite common everywhere.\r\n\r\nAgainst all odds, this bug may be a workaround to the other bug I reported (TIMOB-16941). But it is another separate bug for the ADD system button.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=ApplicationWindow.js}\r\n\r\n//Application Window Component Constructor\r\nfunction ApplicationWindow() {\r\n\t//load component dependencies\r\n\tvar FirstView = require('ui/common/FirstView');\r\n\r\n\t//create component instance\r\n\tvar self = Ti.UI.createWindow({\r\n\t\tbackgroundColor:'#ffffff'\r\n\t});\r\n\r\n\t//construct UI\r\n\tvar firstView = new FirstView();\r\n\tself.add(firstView);\r\n\t\r\n\tvar button1 = Titanium.UI.createButton({\r\n\t\tbottom : 64,\r\n\t\tleft : 16,\r\n\t\tstyle : Ti.UI.iPhone.SystemButton.ADD,\r\n\t});\r\n\tself.add(button1);\r\n\t\r\n\tvar button2 = Titanium.UI.createButton({\r\n\t\tsystemButton : Ti.UI.iPhone.SystemButton.ADD,\r\n\t});\r\n\tvar toolbar = Titanium.UI.iOS.createToolbar({\r\n\t\titems : [button2],\r\n\t\tbottom : 0,\r\n\t\tborderTop : true,\r\n\t\tborderBottom : true\r\n\t});\r\n\tself.add(toolbar);\r\n\r\n\treturn self;\r\n}\r\n\r\n//make constructor function the public component interface\r\nmodule.exports = ApplicationWindow;\r\n\r\n{code}", "attachment": [ { "id": "53823", "filename": "iOS Simulator Screen Shot 26.01.2015 17.32.02.png", "author": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-26T19:42:39.000+0000", "size": 24111, "mimeType": "image/png" } ], "flagged": false, "summary": "ADD system button presented as INFO system button", "creator": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "CLI version 3.4.0, \r\nTitanium SDK version 3.5.0.GA \r\niOS SDK: 8.1 \r\niOS iPhone Simulator: 8.1", "comment": { "comments": [ { "id": "341133", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nBased on our doc, [http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iPhone.SystemButton-property-ADD]\r\n\"Use with Button.systemButton to specify an Add button.\r\n\r\nThe resulting button can only be used in navigation bars and toolbars.\"\r\n\r\nRegards\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-01-29T05:51:48.000+0000", "updated": "2015-01-29T05:51:48.000+0000" }, { "id": "341221", "author": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "body": "You're right, the correct one would be CONTACT_ADD for views. But I would suggest issuing an error or warning rather than showing a different completely icon.", "updateAuthor": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-29T17:09:22.000+0000", "updated": "2015-01-29T17:09:22.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }