I'm trying to set the placeholder color in a UITextfield to white color but it doesn't seem to work. please help. It triend this line of code:
UIColor *color = [UIColor WhiteColor];
emailBox.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"Enter your email address" attributes:@{NSForegroundColorAttributeName: color}];