Project: titanium
Issue TIMOB-18262: iOS: Cannot load images from the applicationDataDirectory
Images in ImageViews, tab icons,etc, can no longer be loaded from the `applicationDataDirectory` in 3.5.0.BETA Here is the sample code to replicate: {code} Titanium.UI.setBackgroundColor('#000'); var win2 = Titanium.UI.createWindow({ title:'Test', backgroundColor:'#fff' }); var image1 = Titanium.UI.createImageView({ top: 10, image: "/appicon.png" }); var icon = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'appicon.png'); var dest = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'appicon.png'); dest.write(icon.read()); var image2 = Titanium.UI.createImageView({ bottom: 10, image: Ti.Filesystem.applicationDataDirectory + 'appicon.png' }); win2.add(image1); win2.add(image2); win2.open(); {code}
Story points: 5