{ "id": "84780", "key": "TIMOB-7120", "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": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-04-19T09:11:24.000+0000", "created": "2012-01-11T22:32:15.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "parity" ], "versions": [], "issuelinks": [], "assignee": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-17T18:35: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": "According to the button bar doc, you can use either a path or a Blob to specify an image for a \r\nbutton bar (and presumably tabbed bar) button. However, this doesn't seem to work. Given the following code:\r\n\r\n{code>\r\n\tvar imgFile = Titanium.Filesystem.getFile('KS_nav_views.png');\r\n\tif (! imgFile.exists() )\r\n\t{ alert(\"Couldn't open image file.\")}\r\n\telse\r\n\t{\r\n\t\tTi.API.info(\"imgFile is: \" + imgFile);\r\n\t}\r\n\tvar imgBlob = imgFile.read();\r\n\tTi.API.info(\"image blog size is: \" + imgBlob.height + \"x\" + imgBlob.width);\r\n\tbb2 = Ti.UI.iOS.createTabbedBar({\r\n\t\tlabels : [ { title: \"One\", image: \"KS_nav_ui.png\" }, { image: imgBlob }],\r\n\t\tbackgroundColor : 'green',\r\n\t\tstyle : Ti.UI.iPhone.SystemButtonStyle.PLAIN,\r\n\t\tbottom : 100,\r\n\t\theight : 60\r\n\t});\r\n{code}\r\nI would expect to see images on both buttons, but only the first one appears. From the log statements, \r\nit appears that the blob is OK, but no image shows up on the second button.\r\n", "attachment": [], "flagged": false, "summary": "iOS: ButtonBar, TabbedBar don't accept Blob images", "creator": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "248320", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-19T09:11:24.000+0000", "updated": "2013-04-19T09:11:24.000+0000" }, { "id": "248321", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "use this code:\n\n\nvar win = Ti.UI.createWindow({\n backgroundColor: 'white',\n exitOnClose: true,\n fullscreen: false,\n layout: 'vertical',\n title: 'Label Demo'\n});\n\nvar imgFile = Titanium.Filesystem.getFile('KS_nav_views.png');\nif (! imgFile.exists() )\n\n{ alert(\"Couldn't open image file.\")}\nelse\n\n{ Ti.API.info(\"imgFile is: \" + imgFile); }\nvar imgBlob = imgFile.read();\nTi.API.info(\"image blog size is: \" + imgBlob.height + \"x\" + imgBlob.width);\nbb2 = Ti.UI.iOS.createTabbedBar({\nlabels : [ { title: \"One\", image: \"KS_nav_ui.png\" }, { image: imgBlob }],\nbackgroundColor : 'green',\nstyle : Ti.UI.iPhone.SystemButtonStyle.PLAIN,\nbottom : 100,\nheight : 60\n});\n\nwin.add(bb2);\nwin.open();\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-19T09:12:30.000+0000", "updated": "2013-04-19T09:12:30.000+0000" }, { "id": "413561", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T18:35:43.000+0000", "updated": "2017-03-17T18:35:43.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }