本文介绍了从代码中获取全局色调颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法可以通过代码从我的项目中获取全局色调?为了避免误解,我的意思是全局色调颜色,我可以在文件检查器中设置。

Is there a way I can get the global tint color from my project by code? To avoid a misunderstanding I mean the global tint color, which i can set in the File Inspector.

推荐答案

在应用程序委托你可以设置它

In the app delegate you can set it by

UIColor *globalTint = [[[UIApplication sharedApplication] delegate] window].tintColor;

这篇关于从代码中获取全局色调颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 00:38