iOS UITextField设置placeholder颜色

mac2022-06-30  37

设置UITextField的placeholder颜色

  UIColor *color = [UIColor blackColor];

    textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"密码" attributes:@{NSForegroundColorAttributeName: color}];

转载于:https://www.cnblogs.com/Ewenblog/p/3891782.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)