Details
-
Type:
Bug
-
Status: Closed
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: Release 3.5.0
-
Fix Version/s: Release 3.5.0, Release 4.0.0
-
Component/s: iOS
-
Labels:
-
Environment:
3.5.0.BETA
-
Story Points:5
-
Sprint:2014 Sprint 25 SDK
Description
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:
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();
|
Attachments
Issue Links
- relates to
-
TIMOB-17582 iOS: Unable to check if a JS source file exists on iPad device
-
- Closed
-
-
TIMOB-18274 iOS: Images property cannot load array of images from the applicationDataDirectory
-
- Closed
-
-
TIMOB-18273 MobileWeb: Cannot load images from the applicationDataDirectory
-
- Closed
-