Apple Watch:移除接口控制器的状态栏 [英] apple Watch: remove status bar for Interface Controller

查看:27
本文介绍了Apple Watch:移除接口控制器的状态栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以删除特定接口控制器的状态栏或以任何方式自定义接口控制器标题文本?

Is it possible to remove status bar for a particular Interface Controller or customise Interface controller title text in any way ?

推荐答案

从 Apple Watch Programming Guide 开始,您可以通过设置 App 的 Key Color 来自定义界面控制器标题文本颜色.

As of Apple Watch Programming Guide you can customize interface controller title text color by setting your App’s Key Color.

每个 WatchKit 应用程序都有一个关联的键颜色,该颜色应用于 >以下 UI 元素:

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.

这就是我们今天所拥有的.

This is all we have as of today.

关于是否可以隐藏状态栏...您将获得更接近的结果是使用模态接口.在这种情况下,时钟将不可见,但状态栏将保留在那里,并显示界面标题.

About if it is possible to hide the status bar... The closer result you will get is by using modal interfaces. In this ones, the clock will be invisible but the status bar will remain there holding the interface title.

这篇关于Apple Watch:移除接口控制器的状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆