1:设置UITextField不显示键盘、隐藏光标
_TxtView.inputView = [[UIView alloc] initWithFrame:CGRectZero];
_TxtView.tintColor = [UIColor clearColor];
2:设置UITextField选中文本时的 全选复制文字的颜色
在plist文件中修改Localization native development region 未China
3:设置Placeholder字体颜色
//第一种
UIColor *color = [UIColor whiteColor];
_userName.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"用户名" attributes:@{NSForegroundColorAttributeName: color}];
//第二种
[_userName setValue:[UIColor whiteColor] forKeyPath:@"_placeholderLabel.textColor"];