如何从 Apple Watch 状态栏中隐藏或删除时间? [英] How to hide or remove the time from the Apple Watch status bar?

查看:120
本文介绍了如何从 Apple Watch 状态栏中隐藏或删除时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在我的应用的 Apple Watch 状态栏屏幕上隐藏或移除小时钟?

How do I hide or remove the small clock from Apple Watch statusbar screen on my app?

我在网上搜索了这个,但一无所获!

I searched the web for this but found nothing!

我刚刚发现如果你移除那个时钟,Apple 会拒绝你的应用,但我的应用本身就是一个表盘,不需要显示那个时间.

I just discovered that Apple will reject your app if you remove that clock, but my app is a watch face itself and doesn't need to display that time.

推荐答案

正如您所指出的,试图在状态栏中隐藏或删除时间会导致您的应用被拒绝.

As you pointed out, trying to hide or remove the time from the status bar will get your app rejected.

目前还没有办法完成您想做的事情,因为 Apple 不允许开发者创建自定义表盘(即使在 watchOS 3 中也是如此).

There's no way to accomplish what you want to do yet, since Apple doesn't permit developers to create custom watch faces (even in watchOS 3).

更新:

请注意,状态栏上没有显示时间的唯一情况是模态演示文稿同时具有左侧和右侧栏按钮标题.这通常不会发生,但会在听写期间发生——文本输入控制器在左侧显示一个 Cancel 按钮,在状态栏右侧显示一个 Done 按钮.

For your information, the only situation when the time does not appear on the status bar is when a modal presentation has both a left AND a right bar button title. This usually does not occur, but will happen during dictation -- the text input controller shows a Cancel button on the left and a Done button on the right of the status bar.

虽然破解栏标题(或使用私有 API)不会让您的应用获得批准,但您可能会研究一种隐藏"状态栏的方法本身,或任何其他不显示时间的模态视图的正确标题.

While hacking the bar titles (or using a private API) wouldn't get your app approved, you might look into a way of "hiding" the status bar itself, or the right title of any other modal view which doesn't happen to show the time.

我只是指出这些事情,以防您只是想制作一个特定的应用程序供您自己使用.由于 Apple 会拒绝违反其要求的应用程序,因此我不鼓励您浪费时间尝试制作您知道会被拒绝的应用程序.

这篇关于如何从 Apple Watch 状态栏中隐藏或删除时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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