[英]How can I set badge count of iOS app from its today extension?
I'm looking for a way to update the badge count of iOS app icon from its iOS8 today extension.我正在寻找一种方法来从其 iOS8 today 扩展更新 iOS 应用程序图标的徽章计数。 Today extension has a button and by touching that button, user can increase or decrease badge count of iOS app.
今天扩展有一个按钮,通过触摸该按钮,用户可以增加或减少 iOS 应用程序的徽章计数。 Can anyone help me with this?
谁能帮我这个?
PS: I need to update the badge count without reopening the app even when the app is terminated. PS:即使应用程序终止,我也需要在不重新打开应用程序的情况下更新徽章计数。
由于您已经创建了组,您可以在组文件夹中保留一个文件并在扩展名中添加一个文件观察器,从应用程序更新文件,文件观察器将捕获更改,您的工作就完成了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.