用法如下:
1.类继承public cocos2d::extension::CCEditBoxDelegate,并实现CCEditBox需要实现的代理
virtual void editBoxEditingDidBegin(cocos2d::extension::CCEditBox* editBox);
virtual void editBoxEditingDidEnd(cocos2d::extension::CCEditBox* editBox);
virtual void editBoxTextChanged(cocos2d::extension::CCEditBox* editBox, const std::string& text);
virtual void editBoxReturn(cocos2d::extension::CCEditBox* editBox);
2.定义输入框
cocos2d::extension::CCEditBox* mEditName;
mEditName =SUIMgr.createCEditBox("EditAccount",this,400, 400, 250, 60);
mEditName->setPosition(middleParentNode->getPosition());
mEditName->setPlaceholderFontColor(ccc3(