How to change placeholder color in UITextField on tvOS, so that the change is kept and it does not revert back to its default placeholder state?
In viewDidLoad() I have added the following:
self.emailTextField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"Email Address" attributes:@{NSFontAttributeName:[UIFont fontWithName:@"OpenSans" size:24], NSForegroundColorAttributeName:[UIColor whiteColor]}];
self.passwordTextField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"Password" attributes:@{NSFontAttributeName:[UIFont fontWithName:@"OpenSans" size:24], NSForegroundColorAttributeName:[UIColor whiteColor]}];
So at first the placeholder color is white, however when it looses focus it reverts back to its default state.
How to keep the change of the placeholder color?