local node = CCNode:create()
local sprite = CCSprite:create()
node:addChild(sprite)
local menuitem = CCMenuitemSprite:create(node,nil)
local menu = CCMenu:createWithItem(menuitem)
在node:addChild(sprite)这行:error in function ‘addChild’.
argument #2 is ‘CCSprite’; ‘CCMenuItem’ expected.
目前报错没有规律,很多地方都有可能出现,而且不是一定出现
error in function ‘addChild’. argument #2 is ‘CCxxx’; ‘CCMenuItem’ expected.
CCxxx代表各种CCNode,CCLayer 等
=======cocos2d-x 2.2.6
===网上找了,也有几个同学这情况 链接下面“
http://discuss.cocos2d-x.org/t/error-in-function-addchild-argument-2-is-ccxxx-ccmenuitem-expected/8803
http://www.cocoachina.com/bbs/read.php?tid-199706-keyword-ccmenuitem|expected.html
======================等大神~~~~~