我是 Titanium 的新应用程序开发人员。我想创建一个基于窗口的应用程序。在 iphone 或 ipad 或 android 平台上运行。当我在 iphone 上运行应用程序而不是正常运行时,但是当我在 Android 上运行时,它会显示一个 msg(意外错误),然后它就关闭了。
var win1 = Titanium.UI.createWindow({
backgroundColor : '#f0f0f0',
});
var view1 = Titanium.UI.createView({
height : 100,
width : 100,
backgroundColor : '#ff0000',
borderColor : '#000',
});
var scrollView1 = Titanium.UI.createScrollView({
contentHeight : 150,
backgroundColor : '#00ff00',
});
var abc = new Array();
abc[0] = 'images/img.png',
abc[1] = 'images/img1.png',
scrollView1.add(abc);
view1.add(scrollView1);
win1.add(view1);
win1.open();
我如何在滚动视图中添加数组。在我存储的数组中(图像路径)
请帮我,
提前致谢,