您的位置:首页 > 产品设计 > UI/UE

修改UITextfield的Placeholder字体颜色

2015-01-05 17:27 309 查看
   
UIColor *color = [UIColor
colorWithWhite:1.0
alpha:0.5];

    textField.attributedPlaceholder = [[NSAttributedString
alloc]
initWithString:@"在这输入名称"
attributes:@{NSForegroundColorAttributeName: color}];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: