Open obama901 opened 5 years ago
iOS 13禁止通过KVC设置placeholderLabel属性
//以下代码会崩溃
UIColor * color = [UIColor greenColor];
[textField setValue:color forKeyPath:@"_placeholderLabel.textColor"];
iOS 13系统直接设置 UITextField 的attributedPlaceholder 属性
所以直接改attributedPlaceholder,要怎么和SakuraKit结合起来啊,之前获取Label可以用SakuraKit设置颜色,SakuraKit能设置NSAttributedString的颜色吗
之前可以通过kvc的私有方法获取到占位文字的UIlabel,但是现在不可以了,有什么解决办法吗?