如何在AppleWatch上编辑顶部状态栏? [英] How can I edit top status bar at AppleWatch?

查看:429
本文介绍了如何在AppleWatch上编辑顶部状态栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从WatchKit开始,我想知道hoy在AppleWatch应用程序中编辑顶部栏的方面.我想更改颜色并将其隐藏在某些视图中,因为我想让用户集中精力执行一项操作.

I'm beginning with WatchKit and I would like to know hoy to edit the aspect of topbar in a AppleWatch app. I would like to change the color and also to hide it in some of my views because I want to focus my user to perform one action.

谢谢!

推荐答案

无法编辑状态栏外观.有一些严格的限制:

It is impossible to edit the status bar appearance. There are some strong restrictions:

  • 状态栏不能隐藏
  • 无法修改黑色背景
  • 您无法添加或修改后退按钮或其他图像

您唯一可以做的就是使用情节提要和源代码中的情节提要和文本中的颜色更改标题颜色.

The only thing you can do is to change the title color using tint color in your storyboard and the text both of through storyboard and source code.

更改颜色

更改文本

[self setTitle:@"MyTitle"];

这篇关于如何在AppleWatch上编辑顶部状态栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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