Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何以WKInterfaceController编程方式更改特定状态栏的全局色调/色调颜色?
WKInterfaceController
文档说:
应用程序的关键颜色存储在应用程序情节提要的 Global Tint 属性中。要访问此属性,请选择您的故事板并显示文件检查器。从弹出菜单中选择几种预先存在的颜色之一,或使用颜色选择器指定自定义颜色。
因此,看起来您只能从 Storyboard 文件中更改全局色调颜色。
看起来无法以编程方式更改色调颜色。然而,Apple 的提醒应用程序确实会更改每个列表的标题颜色。他们可能正在使用私有 API。:-(