2017-11-11 214 views

回答

0

试试这个:

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