ios – Watchkit:编程设置全局色调

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

苹果的文档可以说是很多:

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 bug报告系统中打开一个增强版 radar.

相关文章

UITabBarController 是 iOS 中用于管理和显示选项卡界面的一...
UITableView的重用机制避免了频繁创建和销毁单元格的开销,使...
Objective-C中,类的实例变量(instance variables)和属性(...
从内存管理的角度来看,block可以作为方法的传入参数是因为b...
WKWebView 是 iOS 开发中用于显示网页内容的组件,它是在 iO...
OC中常用的多线程编程技术: 1. NSThread NSThread是Objecti...