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

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

问题描述

我从 WatchKit 开始,我想知道如何在 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天全站免登陆