@BigRob154 wrote:
Hi,
I can't get the Numeric input mode working when using EditBox.ui::Scale9Sprite* s9s = ui::Scale9Sprite::create("res/input.9.png"); ui::EditBox* box = ui::EditBox::create(Size(visibleSize.width * 0.4f, visibleSize.height * 0.125f), s9s); box->setPosition(Vec2(visibleSize.width / 2, visibleSize.height / 2)); box->setReturnType(ui::EditBox::KeyboardReturnType::DEFAULT); box->setInputMode(ui::EditBox::InputMode::DECIMAL); box->setDelegate(this); this->addChild(box);
iOS Simulator iPhone 4s 9.1 is throwing a warning:
Can't find keyplane that supports type 8 for keyboard iPhone-Landscape-DecimalPad; using 2150830698_Landscape_iPhone-Simple-Pad_Default
Running on an iPad 3 with iOS 9.1 I don't get any warnings but the default keyboard is shown, no numeric only values here.
Posts: 1
Participants: 1