cocos2dx 移除node,但输入法不消失
问题:界面上有输入框,点击弹出输入法,此时this->removeFromParent();但输入法软键盘仍然显示。
解决方案:在调用removeFromParent之前,调用static_cast<CCTextFieldTTF*>(input->getVirtualRenderer())->detachWithIME()
问题:界面上有输入框,点击弹出输入法,此时this->removeFromParent();但输入法软键盘仍然显示。
解决方案:在调用removeFromParent之前,调用static_cast<CCTextFieldTTF*>(input->getVirtualRenderer())->detachWithIME()