您当前的位置: 首页 >  ui

培根芝士

暂无认证

  • 0浏览

    0关注

    446博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

修改UITextfield的Placeholder字体颜色

培根芝士 发布时间:2015-01-05 17:27:38 ,浏览量:0

 可以通过设置UITextField的attributedPlaceholder来修改placeholder的字体颜色

UIColor *color = [UIColor colorWithWhite:1.0 alpha:0.5];

textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"在这输入名称" attributes:@{NSForegroundColorAttributeName: color}];

 

关注
打赏
1660824269
查看更多评论
立即登录/注册

微信扫码登录

0.0488s