[英]Programmatically change text color of all text that is a specific color in a application? Xcode
Is there a way to change the color of all the text in my IOS application? 有没有办法改变我的IOS应用程序中所有文本的颜色? we've decided to go with a new color scheme for our app, we've got a bunch of purple text we'd like to make black or gray.
我们决定为我们的应用程序采用新的配色方案,我们有一堆紫色的文字我们想要制作黑色或灰色。
All the text is in the storyboards. 所有文字都在故事板中。 I also can't even find the color code that was used.
我甚至找不到使用的颜色代码。
I found that [[UILabel appearance] setTextColor:[UIColor redColor]];
我发现
[[UILabel appearance] setTextColor:[UIColor redColor]];
works perfectly. 工作得很好。 You should use appearance proxy for all components you want to change ( UITextView, UITextField and etc ).
您应该对要更改的所有组件( UITextView,UITextField等 )使用外观代理 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.