0
我已創建標籤組與單選項卡和窗口的選項卡,我已設置選項卡窗口的背景圖像,圖像在Android上正確顯示,但在iPhone中,我不能看到任何圖像任何解決方案這個問題?iPhone上不顯示窗口背景圖像鈦
var tabGroup = Titanium.UI.createTabGroup({
navBarHidden: true,
layout: 'vertical'
});
Ti.UI.Clipboard.setText('');
var db = require('dbhelper');
db.callDb();
var windowTitle = Ti.UI.createLabel({
color: '#fff',
text: 'IEMR LITE'
});
var win1 = Titanium.UI.createWindow({
backgroundColor: '#fff'
});
if (Ti.Platform.name === 'iPhone OS') {
win1.titleControl = windowTitle;
win1.barImage = 'images/actionbar3.png';
win1.hideTabBar();
} else {}
win1.backgroundImage = 'images/default_portrait.png';
你有任何示例代碼? – Swanand
var tabGroup = Titanium.UI.createTabGroup({\t navBarHidden:true, \t layout:'vertical' }); Ti.UI.Clipboard.setText(''); var db = require('dbhelper'); db.callDb(); VAR WINDOWTITLE = Ti.UI.createLabel({ \t顏色: '#FFF', \t文本: 'IEMR LITE' }); var win1 = Titanium.UI.createWindow({\t backgroundColor:'#fff' }); (Ti.Platform.name ==='iPhone OS'){ \t win1.titleControl = windowTitle; \t \t win1.barImage ='images/actionbar3.png'; \t win1.hideTabBar();其他{ } win1.backgroundImage ='images/default_portrait.png'; – user3581587