Changing Icon per Day

痴心易碎 提交于 2019-12-27 15:45:06

问题


Just like the Calendar app on the iphones and ipods, how do I make the Icon change per day?


回答1:


I assume this is for an iOS app. The answers is, you can't. The Calendar app has access to functionality in iOS that us mere mortal developers cannot access. You may be able to pull this off with a jailbroken phone, but I've never tried that.




回答2:


Since changing the icon is not officially supported, if it's numerical information you want to show, you can use the Notification Badge instead.

Updating iOS badge without push notifications

So you could make it show today's date in the badge, and schedule the badge to update at midnight, or show the current temperature and schedule it to update hourly.




回答3:


There is a new solution for this situation. You can use setAlternateIconName(_:completionHandler:) iOS 10.3 is out with xcode 8.3.

check out solution here



来源:https://stackoverflow.com/questions/4038305/changing-icon-per-day

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!