iOS UITextField设置placeholder颜色

设置UITextField的placeholder颜色

  UIColor *color = [UIColor blackColor];

    textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"密码" attributes:@{NSForegroundColorAttributeName: color}];

posted @ 2014-08-05 11:03  给me一首歌的时间  阅读(207)  评论(0编辑  收藏  举报