Watchkit:以编程方式设置全局色调

Watchkit: Set global tint programmatically

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

A​​pple 的文档说:

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 错误报告系统中打开增强功能 radar