Change UITextField Placeholder Color

if ([textField respondsToSelector:@selector(setAttributedPlaceholder:)])
{
textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:textField.placeholder attributes:@{NSForegroundColorAttributeName: [UIColor whiteColor]}];
}

Advertisements