//提示文字颜色
_text2.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"填写手6位以上的数字"attributes:@{NSForegroundColorAttributeName: [UIColor lightGrayColor]}];
文本提示可以改颜色的代码
最新推荐文章于 2023-12-13 11:16:23 发布
//提示文字颜色
_text2.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"填写手6位以上的数字"attributes:@{NSForegroundColorAttributeName: [UIColor lightGrayColor]}];