Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3010] ImageView uses different path in iPhone simulator vs on device

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2011-06-10T04:01:34.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterJeroen van Vianen
AssigneeTony Guntharp
Created2011-05-13T14:56:16.000+0000
Updated2016-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.

Comments

  1. Mario 2011-05-17

    If you write… Ti.UI.createImageView({image: Titanium.Filesystem.resourcesDirectory + 'iphone/extrainfo.png'}); … it works in all ways.
  2. Jeroen van Vianen 2011-05-17

    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.
  3. Paul Dowsett 2011-05-28

    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
  4. Paul Dowsett 2011-06-10

    See TIMOB-2735
  5. Paul Dowsett 2011-08-16

    Closed after 30 days of inactivity.

JSON Source