var winView = Ti.UI.createView({ height: 65, backgroundColor: '#cccccc', top:301, backgroundImage: '/images/buttonbg.png' });Seems straight forward enough, but no matter what I try, that back ground image will not show up. I have saved and re-saved in Photoshop, using and not using 'Save for Device & Web'. I've saved as a .gif and a .png. And I have tried "images/buttonbg.png" as well (instead of "/images..."). Nothing makes the background image show up. The background COLOR works fine.
Any ideas?
Application type: mobile. Titanium SDK: 2.0.1. Platform & version: iOS 5.x. Device: iOS simulator. Host Operating System: OSX 10.7.3. Titanium Studio: 2.0.1
1 Answer
Well, okay. I'm feeling a little silly now, but for the sake of someone who may have this problem in the future, my problem was this:
Right:
backgroundImage: '/images/buttonBG.png'Wrong:
backgroundImage: '/images/buttonbg.png'Apparently the emulator does not care about image name case sensitivity, but the iPhone does.
Your Answer
Think you can help? Login to answer this question!