输入框placeholder文字默认颜色是多少 ios
4个回答
展开全部
默认的placeholder字体颜色是呈浅灰色
textField.placeholder = @"username is in here!";
[textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];
textField.placeholder = @"username is in here!";
[textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];
展开全部
iOS TextField placeholder 色值:
[[UIColor lightGrayColor] colorWithAlphaComponent:0.7];
亲测一个颜色。
[[UIColor lightGrayColor] colorWithAlphaComponent:0.7];
亲测一个颜色。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
string is drawn 70% gray
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
引用雪花飞落人家的回答:
默认的placeholder字体颜色是呈浅灰色
textField.placeholder = @"username is in here!";
[textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];
默认的placeholder字体颜色是呈浅灰色
textField.placeholder = @"username is in here!";
[textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];
展开全部
默认颜色为:0x8E8E93
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询