【发布时间】:2016-04-10 14:14:27
【问题描述】:
我需要从服务器获取图像的高度和宽度,我需要直接向用户显示。
所以我尝试创建一个 imageView 并将图像放入其中,以便我可以读取 imageView 的高度和宽度
var image = Ti.UI.createImageView({
image : //host Site,
width : "auto",
height : "auto"
});
var hight = image.height;
var width = image.width;
但它总是返回 hight = auto 和 width = auto。
我怎样才能得到高度和宽度,例如高度 = 630 和宽度 = 320?
【问题讨论】:
标签: android iphone titanium titanium-mobile