{ "id": "63465", "key": "TIMOB-2833", "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": "11362", "description": "Mobile 1.8.0 M09", "name": "Sprint 2011-30", "archived": true, "released": true, "releaseDate": "2011-08-01" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-05T15:50:45.000+0000", "created": "2011-04-15T03:30:37.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "regression" ], "versions": [ { "id": "11231", "name": "Release 1.5.1", "archived": true, "released": true, "releaseDate": "2011-01-24" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-11-05T15:50:45.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": "{html}

If I place an image in:

\r\n

Resources/iphone/images/myimage.png

\r\n

and reference it in app.js as:

\r\n
\r\nvar btn = Ti.UI.createButton({\r\n  backgroundImage:'images/myimage.png',\r\n  title:'foo'\r\n});\r\n
\r\n

it does not work - I have to place the image in:

\r\n

Resources/images/myimage.png

\r\n

for it to show up as the background image of my button. It's\r\npossible this extends to other resource types as well (JS files,\r\netc), but I have not tested that

{html}", "attachment": [], "flagged": false, "summary": "Platform specific images are not being picked up from the Resources/iphone directory", "creator": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "130791", "author": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "body": "rollback wrong update", "updateAuthor": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "created": "2011-04-15T07:24:44.000+0000", "updated": "2011-04-15T07:24:44.000+0000" }, { "id": "133118", "author": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is an open question that needs Xplatform alifnment and discussion\n", "updateAuthor": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-03T15:28:28.000+0000", "updated": "2011-05-03T15:28:28.000+0000" }, { "id": "159731", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have confirmed that this is a simulator issue. The same code works on device. I believe it is due to how the simulator is handling the paths versus the bundle for the device which places the images in the resources directory. Still a bug, but only for the simulator.\r\n\r\nTemporary workaround: \r\n{code}\r\nvar path ='';\r\nif(Ti.Platform.model=='Simulator'){\r\n\tpath ='iphone/'\r\n }\r\n \r\nvar image = Ti.UI.createImageView({\r\n image: path+'images/default.png'\r\n});\r\n{code}", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-15T18:06:57.000+0000", "updated": "2011-07-15T18:06:57.000+0000" }, { "id": "159733", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This bug makes developing a cross-platform app with density specific images very difficult.", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-15T18:12:15.000+0000", "updated": "2011-07-15T18:12:15.000+0000" }, { "id": "160704", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull request 292 is in queue. It's a change to the build process, not the code, although it does obsolete some code.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-26T20:15:50.000+0000", "updated": "2011-07-26T20:15:50.000+0000" }, { "id": "164347", "author": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested On:\n\nMac OSX Lion\nTiMob: 1.8.0.v20110819142548\nTiStud: 1.0.4.201108101535\n\nDevices:\n\niPhone 4 version 4.2.10\niPad2 version 4.3.5\niPod 3", "updateAuthor": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-29T10:47:21.000+0000", "updated": "2011-08-29T10:47:21.000+0000" }, { "id": "171671", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Standardizing summary and labels.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-05T15:50:19.000+0000", "updated": "2011-11-05T15:50:19.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }