修改UITextfield的Placeholder字体的颜色

来源:互联网 发布:淘宝海尔官方旗舰店 编辑:程序博客网 时间:2024/05/18 07:01


_textFeild.attributedPlaceholder = [[NSAttributedStringalloc] initWithString:@"输入重量"attributes:@{NSForegroundColorAttributeName:[UIColorwhiteColor]}];


0 0
原创粉丝点击