0

最初のアプリを開発するために、チュートリアルに従っています。マルチプラットフォーム ソフトウェアを使用しています。現在、以下のコードは初回のみ機能し、その後、完了ボタンが消えます。なにか提案を。もちろん、これはiPhoneエミュレーターで発生します。

//flexible space for button bars
var flexSpace = Titanium.UI.createButton({
    systemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE
});

//done system button
var buttonDone = Titanium.UI.createButton({
    systemButton:Titanium.UI.iPhone.SystemButton.DONE,
    bottom: 0
});
//add the event listener 'click' event to our done button
buttonDone.addEventListener('click', function(e){
    tfAmount.blur();
    tfInterestRate.blur();
    interestRate = tfInterestRate.value;
    tfAmount.visible = true;
    labelAmount.visible = true;
});
4

1 に答える 1

0

解決策を見つける

var toolview = Ti.UI.iOS.createToolbar({
    height : 40,
    width : '100%',
    left : 0,
    top : 0,
    items : [flexSpace, buttonDone],
    barColor : '#000000'
});
win.add(toolview);
于 2013-03-30T13:04:12.983 に答える