Hi all,
I’m developing my games in lua & cocos2dx. I used tolua++ to convert CCEditbox and CCScale9Sprite without errors. But when i used CCEditbox in lua, when i call:
local editbox = CCEditbox:create(…)
layer:addChild(editbox) ==> crash in this line.
This is the error:
error in function ‘addChild’.
argument #2 is ‘CCEditBox’; ‘CCNode’ expected.
)
Maybe due to casting CCEditbox to CCNode .
Does anyone know how to binding and use CCEditbox in lua ?