@GameD wrote:
Hello,
I am using cocos2d-x v3.9 and testing on iOS 9.1. Problem I am facing is on iOS the keyboard doesn't hide when tapped outside in empty area, it is working fine on android though. Using the following code in EditBox, delegate is working as I am getting other events called.auto _editName = ui::EditBox::create(cocos2d::Size(250,60), cocos2d::ui::Scale9Sprite::createWithSpriteFrameName("whiteBox.png")); _editName->setAnchorPoint(Vec2(0, 0)); _editName->setFontColor(Color4B(56, 123, 158, 255)); _editName->setPlaceHolder("Name:"); _editName->setPlaceholderFontSize(22); _editName->setPlaceholderFontColor(Color4B(56, 123, 158, 255)); _editName->setMaxLength(4); _editName->setFontSize(22); _editName->setReturnType(ui::EditBox::KeyboardReturnType::DEFAULT); _editName->setInputMode(ui::EditBox::InputMode::SINGLE_LINE); _editName->setDelegate(this); addChild(_editName);
Posts: 1
Participants: 1