Please help me. I created a menu include item1, item2, item3. Then I wanted to remove item1 out menu, but I didn't see any function to remove. What can I do now to remove?
Your question is quite ambiguous, which is probably why you haven't received any response until now.
Are you using Titanium.UI.Android.OptionMenu ? If so, using the example at the the bottom of the Android.OptionMenu-module documentation, have you tried simply:
Yes, I'm using Titanium.UI.Android.OptionMenu. I tried using menu.remove(item1) but it had error. This error is:
"TypeError: Cannot call property remove in object ti.modules.titanium.ui.android.optionmenu.Menuproxy@437bcff8. It is not function, it is 'object'"
In 1.5.0 there is support coming for remove item. It's not documented yet. Also this old api had to be scrapped so don't pull the CI 1.5.0 until I've documented the menu change.
Think you can help? Login to answer this question!