ios 有没有办法在iphone的锁屏上显示倒计时?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29182616/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there any way to show a countdown on the lockscreen of iphone?
提问by twoyoung
The integral countdown has a limit of 24 hours, but I want a countdown which could count for a few years. It could show the time like XXXXDays XXHours XXminutes XXseconds
with large characters on the lock screen. If it could also show on the wallpaper, that will be better. Then every time I use my iPhone, I would be noticed by my goal.
积分倒计时有 24 小时的限制,但我想要一个可以倒数几年的倒计时。它可以像XXXXDays XXHours XXminutes XXseconds
锁定屏幕上的大字符一样显示时间。如果它也可以显示在壁纸上,那就更好了。然后每次我使用我的 iPhone 时,我都会被我的目标注意到。
I know nothing about the iOS
development, but I'm wondering if there is an app could do this or could this be possible?
我对iOS
开发一无所知,但我想知道是否有应用程序可以做到这一点,或者这可能吗?
回答by palme
There is no way to display interactive elements on the lockscreen or wallpaper with a non jailbroken iPhone.
未越狱的 iPhone 无法在锁屏或墙纸上显示交互元素。
I would recommend Countdown Widgetit's free an you can display countdowns in the notification center which you can also access from your lockscreen.
我会推荐倒计时小工具,它是免费的,您可以在通知中心显示倒计时,您也可以从锁屏访问。
回答by CMash
A today extension would be the most fitting solution.
今天的扩展将是最合适的解决方案。
Also you could do something on the lock screen with local notifications queued up to fire at regular intervals showing the latest countdown value.
您也可以在锁定屏幕上做一些事情,本地通知排队等待定期触发,显示最新的倒计时值。
回答by Cleverclog
Or you could figure out the exacting amount of hours and minutes and have that displayed by puttin it into the timer app that already exist in every iphone :)
或者您可以计算出确切的小时数和分钟数,并通过将其放入每个 iPhone 中已经存在的计时器应用程序中来显示它:)