2
在適用於iPhone的Titanium中,可以在導航欄上方顯示某些內容 - 或者只是禁用導航欄的always-top屬性?在Titanium中覆蓋導航欄的always-top屬性
這是它的外觀,現在:
這是實際的Photoshop實物模型部分:
的代碼片段調用此是:
var win1 = Titanium.UI.createWindow({
title: 'Home',
navBarHidden: false,
barImage: 'topbar.png',
backgroundImage: 'bga.png'
});
c = Titanium.UI.createImageView({
image: 'logobar.png',
top: -13,
right: 7,
width: 74,
height: 108,
exitOnClose: !0
})
try {
win1.add(c);
c.animate({zIndex:3});
win1.addEventListener('focus', function() {
Titanium.App.Analytics.trackPageview('/win1')
});
}catch(e){
alert(e);
}
try-catch的實現是因爲我不相信.animate的存在,但它確實存在但沒有奏效。
我不需要這個,但它是一個非常聰明的解決方案 – bharal