2012-03-27 70 views
0

我正在创建一个包含图像视图的表格行,并且该图像视图图像将来自远程URL。无法在表格视图中显示远程图像 - appcelerator

var pic = Titanium.UI.createImageView({ 
     image:photoUrl, 
     width:32, 
     height:32, 
     left:4, 
     top:2 
    }); 

这里photoUrl是Android上的不显示任何iPhone上的显示一些默认的图像类似“https://xxx.xx.x.com/profilephoto/72990000000D6Wd/T” 。我错过了什么吗?

回答

0

问题已解决。

image url“https://xxx.xx.x.com/profilephoto/72990000000D6Wd/T”被重定向到登录屏幕。它在浏览器上工作正常,因为我已经登录,但它不适用于移动应用程序,因为会话ID不在那里。

所以我已经修改URL像https://xxx.xx.x.com/profilephoto/72990000000D6Wd/T?oauth_token=[token]

现在,它的工作的罚款。