[tf setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];//修改placeHolder的字体颜色
[tf setValue:@(20) forKeyPath:@"paddingLeft"];//修改文字与文本框左边缘的间隔