[AC-3010] ImageView uses different path in iPhone simulator vs on device
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2011-06-10T04:01:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Jeroen van Vianen |
Assignee | Tony Guntharp |
Created | 2011-05-13T14:56:16.000+0000 |
Updated | 2016-03-08T07:48:02.000+0000 |
Description
My image lives in Resources/iphone/my_image.png.
If I want to display it correctly in the iPhone simulator, I need:
Ti.UI.createImageView({
image: 'iphone/extrainfo.png',
....
});
whereas, to display the image correctly on the device, I need:
Ti.UI.createImageView({
image: 'extrainfo.png',
....
});
This is pretty inconsistent.
If you write… Ti.UI.createImageView({image: Titanium.Filesystem.resourcesDirectory + 'iphone/extrainfo.png'}); … it works in all ways.
Unfortunately it doesn't work with images in Resources/iphone. I just moved them to a new folder Resources/images and now my extrainfo.png and extrainfo@2x.png work. Weird.
Mario, in order for us to progress this issue, edit your ticket to include a proper [Use-case](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-CreatingGoodUsecases). Please read the [Submitting Bug Reports](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-SubmittingBugReports) guide before raising tickets. Thank you
See TIMOB-2735
Closed after 30 days of inactivity.