iOS TextField中placeholder颜色设置

2021-04-14  本文已影响0人  LoveBe
NSDictionary *attrs = @{NSForegroundColorAttributeName:[UIColor blackColor]};
textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"文字" attributes:attrs];
上一篇 下一篇

猜你喜欢

热点阅读