Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

[WARN] the 'url' property on ImageView has been deprecated

Getting this warning when running my project in the simulator. My code is below. Is this something I should worry about? And if so, how do I fix it? Sorry if this is an easy or silly question… :)

[WARN] the 'url' property on ImageView has been deprecated. Please use 'image' instead

scrollView.add(content7);

    var imageView = Ti.UI.createImageView({
        url:'../images/authorpics/clarkebig.png',
        top: 10,
        left:10,
        height:120,
        width:100
    });

scrollView.add(imageView);
— asked October 2nd 2010 by John Howell
  • deprecated
  • error
  • imageviews
  • warning
0 Comments

1 Answer

  • It was an obvious question! Just answered it myself. To all those who have the same warning, just replace "url" in the above example with "image"

    — answered October 2nd 2010 by John Howell
    permalink
    1 Comment
    • But….what if you want to do comparisons on that value? It is no longer set as a string. How can you compare now?

      — commented April 26th 2011 by Aaron Benzick
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.