ios – Watchkit:编程设置全局色调

我知道如何从Storyboard设置项目的全局色调.但是如何编程色调?

苹果的文档可以说是很多:

Every WatchKit app has an associated key color,which is applied to
the >following UI elements:

-The title string in the status bar

-The app name in short look notifications

An app’s key color is stored in the Global Tint property of the app’s
storyboard. To access this property,select your storyboard and
display the File inspector. Select one of several preexisting colors
from the popup menu or use the color picker to specify a custom color.

但是可以编程吗

解决方法

不幸的是,目前没有办法以编程方式执行.我建议您在Apple bug报告系统中打开一个增强版 radar.

以上是来客网为你收集整理的ios – Watchkit:编程设置全局色调全部内容,希望文章能够帮你解决ios – Watchkit:编程设置全局色调所遇到的程序开发问题。

如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。