iOS TextField中placeholder颜色设置
2021-04-14 本文已影响0人
LoveBe
NSDictionary *attrs = @{NSForegroundColorAttributeName:[UIColor blackColor]};
textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"文字" attributes:attrs];
NSDictionary *attrs = @{NSForegroundColorAttributeName:[UIColor blackColor]};
textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"文字" attributes:attrs];