Remove leftNavButton/rightNavButton from Popover Crashes App
I have an popover with a leftNavButton, but in one moment a need remove this button, when i call:
mypopover.leftNavButton = null;
the App crashes!
what i'm do wrong?
This occurred in 1.4.1.1, 1.4.2 and 1.5.0 (04/11)
3 Answers
-
Accepted Answer
var emptyView = Titanium.UI.createView({}); mypopover.leftNavButton = emptyView;
Found this hack earlier when I wanted to show/hide an "Add" button in a table view when in editing mode.
-
As of 11th January 2012, this no longer seems to be an issue. I use both ways to set "NavButton"'s to null and no obvious effects to the application.
[INFO] Titanium SDK version: 1.7.3.v20111013094213 app.windows._list.setLeftNavButton(); app.windows._list.rightNavButton = null;
-
Yes, i tried
mypopover.setLeftNavButton(null);
and
mypopover.leftNavButton = null;
but a crash occurred.