Skip to content

.add on non-iOS platforms #80

@tonylukasavage

Description

@tonylukasavage

Currently the .add code on non-iOS systems will copy the files to Ti.Filesystem.applicationDataDirectory. This makes it trickier to add say an image file and then use it in a createImageView() call.

ios

> .add pic.jpg
undefined
> var image = Ti.UI.createImageView({ image: 'pic.jpg' }); 
undefined

android

> .add pic.jpg
undefined
> var image = Ti.UI.createImageView({ image: Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'pic.jpg') }); 
undefined

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions