I finally do this:
for (UIView* subview in [[self.subviews lastObject] subviews]) {
if ([subview isKindOfClass:[UITextField class]]) {
UITextField *textField = (UITextField*)subview;
textField.styleMode = PXStylingNone;
[textField setBackgroundColor:[UIColor colorWithHexString:@"#014148"]];
textField.textColor = [UIColor whiteColor];
}
}
I have this style interfering:
text-field {
color: black;
background-color : @colorEditTexto;
placeholder {
font-style: italic;
color: darkgray;
}
}
that is why is necessary to set PXStylingNone
.