我正在制作一个带有 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/