Hi, I assign a backgroundImage to a view like this:
var view= Titanium.UI.createView({ backgroundImage: 'urlImage' });On iphone iOS5, backgroundImage displayed but on an other iPhone iOS4 backgroundImage is not displayed. Does
Titanium.UI.createView({backgroundImage: 'urlImage'}); is espcific to iOS 5 ?
5 Answers
I used more components like imageView, textField (assigning backgroundImage). And, I have always same result
I'm using a remote url
Hi Zozo ,
As per my knowledge remote url is only supported for ImageView not any other view.
Hello Zozo,
Try this instead of view
var imgs = 'urI Image' var imgView = Ti.UI.createImageView({ height : 'auto', width : 'auto', left : '2%', right : '2%', image : imgs.toString() }); win.add(imgView);
Titanium.UI.createView({backgroundImage: 'urlImage'});
works but doesn't works for all devices (on iOS5 or iOS4)
Your Answer
Think you can help? Login to answer this question!