开发者

Changing Icon per Day

开发者 https://www.devze.com 2023-01-22 12:15 出处:网络
Just like the Calendar app on the iphones and ipod开发者_运维百科s, how do I make the Icon change per day? I assume this is for an iOS app. The answers is, you can\'t. The Calendar app has access to f

Just like the Calendar app on the iphones and ipod开发者_运维百科s, how do I make the Icon change per day?


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.


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消