iOS Changing App icon at runtime

后端 未结 1 1864
北荒
北荒 2021-01-26 00:39

I want to change my app icon at runtime. I read other similar threads on SO, and they say that it is not possible using Apple sanctioned APIs. One of the responses mentioned tha

相关标签:
1条回答
  • 2021-01-26 01:08

    Although this is an old question, I recently discovered this is now possible, as of iOS 10.3:

    https://developer.apple.com/documentation/uikit/uiapplication/2806818-setalternateiconname

    ...using the UIApplication.setAlternateIconName(_:completionHandler:) API.

    Note however you are limited to using icons which are already shipped as part of the app bundle.

    0 讨论(0)
提交回复
热议问题