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

查看:140
本文介绍了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编程指南》开始,您可以通过设置应用程序的键颜色来自定义界面控制器标题文本的颜色.

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.

这是我们今天的全部.

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

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天全站免登陆