[TIMOB-1950] Defining full path to image doesnt trigger @2x
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2011-04-15T03:06:22.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | @2x, ios |
Reporter | Jeroen K. |
Assignee | Reggie Seagraves |
Created | 2011-04-15T03:06:21.000+0000 |
Updated | 2017-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.
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?
Dupe of #1792.
Closing ticket as duplicate.