textfield只显示android我文本字段中的顶部上方正在工作 适当的ios设备但Android设备它显示上部顶部我 附上截图
auto namewithPlates = ui::Scale9Sprite::create("text_field.png");
namewithPlates->setAnchorPoint(Point(.53,.5));
auto tempplt = ui::Scale9Sprite::create("text_field.png");
tempplt->setScale(ratinaScaleX);
f_editemail = ui::EditBox::create(tempplt->getBoundingBox().size, namewithPlates);
f_editemail->setPosition(Point(plates->getPosition().x,signwithPlates->getPosition().y-signwithPlates->getBoundingBox().size.height/2 -tempplt->getBoundingBox().size.height/2));//added 11 Aug 2015s
f_editemail->setFont(fRockoUltraFLFBold, 20*ratinaScaleX);//Added 11 Aug 2015
f_editemail->setPlaceholderFont(fRockoUltraFLFBold, 20*ratinaScaleX);//Added 11 Aug 2015
f_editemail->setPlaceHolder("Email");
f_editemail->setPlaceholderFontColor(Color3B::RED);
f_editemail->setFontColor(TextColor);////Added 11 Aug 2015
mainLayer->addChild(f_editemail);
f_editemail->setLocalZOrder(4);//added 10 Aug 2015
f_editemail->setReturnType(ui::EditBox::KeyboardReturnType::DONE);
auto namewithPlates = ui::Scale9Sprite::create("text_field.png");
namewithPlates->setAnchorPoint(Point(.53,.5));
auto tempplt = ui::Scale9Sprite::create("text_field.png");
tempplt->setScale(ratinaScaleX);
f_editemail = ui::EditBox::create(tempplt->getBoundingBox().size, namewithPlates);
f_editemail->setPosition(Point(visibleSize/2));//added 11 Aug 2015s
f_editemail->setFont(fRockoUltraFLFBold, 20*ratinaScaleX);//Added 11 Aug 2015
f_editemail->setPlaceholderFont(fRockoUltraFLFBold, 20*ratinaScaleX);//Added 11 Aug 2015
f_editemail->setPlaceHolder("Email");
f_editemail->setPlaceholderFontColor(Color3B::RED);
f_editemail->setFontColor(TextColor);////Added 11 Aug 2015
mainLayer->addChild(f_editemail);
f_editemail->setLocalZOrder(4);//added 10 Aug 2015
f_editemail->setReturnType(ui::EditBox::KeyboardReturnType::DONE);
}