Im new to cocos and Not able to set the background color of textField, the textField is black color by default and i want to change it to white. Can someone please help me out.
Here is my code.
ui::TextField *textField = ui::TextField::create();
textField->setPosition(Vec2(visibleSize.width / 2.0f, visibleSize.height / 2.0f));
textField->setContentSize(Size(100 , 44));
textField->setPlaceHolder(“Enter the words here”);
textField->setFontSize(30);
this->addChild(textField);