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

前端之家收集整理的这篇文章主要介绍了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.
原文链接:https://www.f2er.com/iOS/335904.html

猜你在找的iOS相关文章