0

I figured out how to make the UITextField transparent, but I now need to make the placeholder text white. Is this possible? Thanks in advance for your help!

DerrickC
  • 3
  • 2

1 Answers1

0

Try this:

UIColor *color = [UIColor whiteColor];
textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeholderText attributes:@{NSForegroundColorAttributeName: color}];
nanibir
  • 234
  • 1
  • 9