cocos2d::ui::EditBox 重影
输入时要改变EditBox的值,会重影!
测试机 :荣耀6
void GameBank::editBoxTextChanged(cocos2d::ui::EditBox* editBox, const std::string& text)
{
if (m_editStore == editBox)
{
int iCnt = atoi(text.c_str());
if (iCnt > 100)
{
m_editStore->setText(“100”);
m_editStore->setFocusEnabled(false);
}
return;
}
}