user2888797
user2888797

Reputation: 21

Titanium : uncaught type error

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

Answers (2)

Anand
Anand

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

daniula
daniula

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

Related Questions