Titanium 从本地文件在xml上显示图像

Titanium 从本地文件在xml上显示图像,titanium,titanium-mobile,Titanium,Titanium Mobile,我存储了一个图像的完整路径并在下面检索了它,我想知道为什么这个图像文件路径不显示在xml上的imageview中? file://localhost/Users/rhez/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/76BDE731-037A-43F8-997B-DAFCA6E0D509/Documents/1372402304473-ea.jpg <TableView dataCollection="

我存储了一个图像的完整路径并在下面检索了它,我想知道为什么这个图像文件路径不显示在xml上的imageview中? file://localhost/Users/rhez/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/76BDE731-037A-43F8-997B-DAFCA6E0D509/Documents/1372402304473-ea.jpg

<TableView dataCollection="photos">
<TableViewRow id="row" dataId="" model="{id}">
<View id="holderview">
<ImageView id="imageview" url="{path}"></ImageView>
</View>
</TableViewRow>
</TableView>

但是,当我在应用程序项目文档所在的finder中查看时,图像存储在其中。在我的xml上显示/检索是否有问题?感谢您的帮助。

尝试设置属性,而不是url,url已被弃用

<TableView dataCollection="photos">
    <TableViewRow id="row" dataId="" model="{id}">
        <View id="holderview">
            <ImageView id="imageview" image="{path}"></ImageView>
        </View>
    </TableViewRow>
</TableView>


请包含.tss文件。您是否设置了高度和宽度Hi,我发现在我的tss文件中,我设置的图像高度和宽度小于图像的实际尺寸,因此我在上载图像尺寸之前对其进行了更改。谢谢