微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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.jb51.cc/iOS/335904.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐