tingxins / SakuraKit

🤡SakuraKit, a lightweight and powerful library for application to switching themes or skins.
https://tingxins.com/2017/08/ios-theme-skin-resolution/
MIT License
690 stars 116 forks source link

UITextField 的占位文字颜色如何自定义切换 #10

Open CXTretar opened 6 years ago

CXTretar commented 6 years ago

暂时通过这种方式解决。

UILabel *placeholderLabel = [textField valueForKeyPath:@"_placeholderLabel"];
placeholderLabel.sakura.textColor(@"Global.textColor");
obama901 commented 5 years ago

iOS 13了,这个方法行不通了