Created
February 28, 2018 04:42
-
-
Save acalism/1bea304879ffe88be7fdaec6f6cd6a05 to your computer and use it in GitHub Desktop.
临时改变 icon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CFBundleIcons | |
// https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/TP40009249-SW13 | |
if #available(iOS 10.3, *) { | |
UIApplication.shared.setAlternateIconName("AppIcon-alternate", completionHandler: { (error) in | |
// | |
}) | |
} else { | |
// no Fallback on earlier versions | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment