Titanium ImageView wont display images?

前端 未结 2 1045
甜味超标
甜味超标 2021-01-26 05:09

I created an image directory in my projects in the UI folder to place my images. So the full path is currently Resources/UI/Images. When i create an image view it wont display t

2条回答
  •  不思量自难忘°
    2021-01-26 05:37

    There is an error in your code. There is no url property for ImageView control. You should use image property. Try the following code

    var imgv = Titanium.UI.createImageView({
                     image:"../images/sb02.jpg"
               });
    self.add(imgv);
    

提交回复
热议问题