改变占位符的颜色

来源:互联网 发布:mac ruby 2.3.0 安装 编辑:程序博客网 时间:2024/06/05 17:26
UIColor * color = [UIColor redColor];
    tf.attributedPlaceholder = [[NSAttributedString alloc]initWithString:@"kllujfas"attributes:@{NSForegroundColorAttributeName: color}];
0 0
原创粉丝点击