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

标签 ios watchkit apple-watch tintcolor

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

Apple 的文档说:

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.

但它也可以通过编程方式完成吗?

enter image description here

最佳答案

不幸的是,目前无法以编程方式执行此操作。我建议你打开一个增强radar在 Apple 错误报告系统中。

关于ios - Watchkit:以编程方式设置全局色调,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29054722/

相关文章:

ios - UIView 阴影和圆角

swift - 将 GraphicCircular Apple Watch 复杂功能添加到现有 Xcode 项目

apple-watch - 在 SwiftUI 中以编程方式使用 NavigationLink

ios - 无效 CFBundleIdentier ITMS-90376

ios - 在 Apple Watch 中使用代表

apple-watch - Xcode 7.0 beta/IOS9/WatchOS 2 - 没有配对 Apple Watch 的符号?

ios - 自定义 UITableViewCell 仅在 iPhone5 上限制用户触摸响应

ios - 没有 TableView 的 StackView 中的 UITableViewCell

ios - 有什么方法可以在没有循环的情况下检查指向指针的 bool** 指针是否包含 C 中的真值?

ios - WKInterfaceTable、WKInterfaceButton 和操作方法