Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CXTretar opened this issue May 28, 2018 · 2 comments
Open

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

CXTretar opened this issue May 28, 2018 · 2 comments

Comments

@CXTretar
Copy link

No description provided.

@CXTretar
Copy link
Author

暂时通过这种方式解决。

UILabel *placeholderLabel = [textField valueForKeyPath:@"_placeholderLabel"];
placeholderLabel.sakura.textColor(@"Global.textColor");

@obama901
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants