swift - 如何以编程方式设置 WatchKit 应用程序的背景颜色?

标签 swift watchkit apple-watch xcode6.3

我正在制作一个带有 slider 的简单应用程序,然后我想如何以编程方式更改 Apple Watch 的背景颜色。我知道您通常会如何在 iPhone 上执行此操作,但不知道这个会是什么!

最佳答案

没有 API 可以更改 WKInterfaceController 的颜色,您可以在 InterfaceBuilder 中设置颜色,但不能在代码中设置。

Apple 强烈建议在 Apple Watch Human Interface Guidelines 中使用黑色:

Use black for your app’s background color. A black background blends seamlessly with the device bezel and maintains the illusion of no screen edges. Avoid bright background colors in your interface.

关于swift - 如何以编程方式设置 WatchKit 应用程序的背景颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29592148/

相关文章:

ios - iOS本地通知可以安排到多远的 future ?

ios - 无法更改 Apple Watch 通知中的窗框标题

ios - WatchKit 和 CoreData 的奇怪问题

uikit - CLKComplication tintColor 不起作用

swift - 如何根据 WatchKit 中的 watch 大小缩放字体大小?

ios - label.isHidden = false 不出现,Swift

swift - 如何从 Realm 模型类中检索 ‘List<myObject>' Realm 数组到数组?

watchkit - WatchConnectivity transferFile 问题( watch -> iphone)

arrays - 如何将变量的值设置为字典键值中的数组?

swift - Apple Watch 如何监听 iPhone 上的数据变化?