Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1950] Defining full path to image doesnt trigger @2x

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionDuplicate
Resolution Date2011-04-15T03:06:22.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labels@2x, ios
ReporterJeroen K.
AssigneeReggie Seagraves
Created2011-04-15T03:06:21.000+0000
Updated2017-03-09T21:28:07.000+0000

Description

When you define the path to an image through the use of Ti.Filesystem.resourcesDirectory it won't trigger the @2x equivalent on the iPhone 4.

backgroundImage: Ti.Filesystem.resourcesDirectory+'/images/button1.png'

won't show the @2x variant

backgroundImage: 'images/button1.png'

will show button1@2x.png on retina displays.

Comments

  1. Jeroen K. 2011-04-15

    Just found this: https://appcelerator.lighthouseapp.com/projects/32238/tickets/1792-2x-assets-not-loaded-when-using-full-path-iphone-4-sdk-14"> https://appcelerator.lighthouseapp.com/projects/32238/tickets/1792-... which states the same problem. So this ticket can be merged?

  2. Stephen Tramer 2011-04-15

    Dupe of #1792.

  3. Lee Morris 2017-03-09

    Closing ticket as duplicate.

JSON Source