Change app icon in iOS 4 at runtime

How can I change the icon of my application in iOS 4 at runtime the way the Calendar application icon changes based on today's date?

I want to publish a 4 digit numeric number once a day without the user opening the application for his chaeck.

+4
source share
2 answers

The best thing you can do right now within the framework of the authorized Apple API is to add a red badge with a number to the badge using the UIApplication applicationIconBadgeNumber property. Not sure if it's big enough to fit 4 digits though.

This is if you want to install it while the application is open. To update the icon in the background, you need to either send a UILocalNotification message (if you know in advance when and what the icon should say), or use push notifications.

+4
source

It is not possible to do this using the iOS SDK (you can skip your icon, but you cannot change the icon itself.) If you want this feature to be added to iOS, write a promotion request in http://bugreporter.apple. com .

+3
source

Source: https://habr.com/ru/post/1338280/


All Articles