Dynamic iPhone App Icons?

The calendar application does this ... How can I change the application icon based on the saved information from the iPod or iPod settings?

EDIT: Today I realized that you can access packages through sdk. (At least read access) If I had a graphical API (possibly OpenGL), I could change this icon. Operation:

  • get the .png icon from the package.
  • change it
  • save it as a set.

It makes sense?

+4
source share
4 answers

Unfortunately, you cannot use the SDK (which, of course, Apple is not limited using the Calendar application) - you can make icons, but the image is always static.

+3
source

As a note, the Apple Calendar app is actually hardcoded to display a view by icon. Place it to the left of the first page and drag it into SpotLight, you will notice that the text disappears in different ways.

+5
source

In response to your editing: no, you cannot modify any files inside your package; your application is isolated to have write access only in its documents, caches and temporary directories.

+2
source

This is possible in the new iOS 10.3 update (beta), but you will need to specify each icon in the info.plist file.

func setAlternateIconName(_ alternateIconName: String?, completionHandler: ((Error?) -> Void)? = nil) 

alternateIconName

+1
source

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


All Articles