Hide / Remove win.rightNavBar Button
Hi guys,
would be great if anyone could give me a hint :).
Afaik Buttons could be made invisible with button.hide();
But this only works if the button was added via win.add(button);
So the question is, how could I remove a button which is added like this:
var save = Titanium.UI.createButton({
systemButton:Titanium.UI.iPhone.SystemButton.SAVE
});
save.addEventListener('click', function()
{
//... do some magic here...
save.hide(); //does not work
});
win.rightNavButton = save;
thank you!
2 Answers
-
Accepted Answer
set it to
null
. -
too obvious… ;)
thank you