Reputation: 21
var menu = Titanium.UI.Android.OptionMenu.createMenu();
what it come up with when on the emulator it says
Message: uncaught TypeError: Cannot call method 'createMenu' of undefined
source: var menu = Titanium.UI.Android.OptionMenu.CreateMenu();
if you know what this all means would you be able to explain and help fix the problem.
Upvotes: 1
Views: 132
Reputation: 5332
The problem is Ti.UI.Android
module doesn't have an OptionMenu
object. If you want to create a menu, you can use Titanium.Android.Menu module.
Upvotes: 0
Reputation: 7028
Titanium.UI.Android
doesn't have OptionMenu
object.
Check documentation and describe what you are trying to do with more details.
Upvotes: 1