iOS TextField中placeholder颜色设置

NSDictionary *attrs = @{NSForegroundColorAttributeName:[UIColor blackColor]};
textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"文字" attributes:attrs];

你可能感兴趣的:(iOS TextField中placeholder颜色设置)