CCEditBox弹不出软键盘!

喏喏的小念想
Fri, 28 Aug 2015 08:36:20 +0000

在你的代码里面手动增加响应事件，
类似_pTextField->addTouchEventListener(CC_CALLBACK_2(ChatLayer::touchDownAction, this));
void ChatLayer::touchDownAction(Ref *sender, Widget::TouchEventType controlEvent)
{
if (controlEvent == Widget::TouchEventType::ENDED)
{
showLayer(false);
isTouchEditBoxShow = true;
_pTextField->openMyKeyBoard();
}
}

自己看下EditBox源码。

阅读整个主题