Created
March 23, 2019 08:55
-
-
Save MadeBugs/13e4b85aeeef0943769af3f2eeac46bf to your computer and use it in GitHub Desktop.
动态更换APP图标
This file contains 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
//判断是否支持更换图标 | |
if(![[UIApplication sharedApplication] supportsAlternateIcons]) { | |
return; | |
} | |
//更换icon,传入图标文件名 | |
[[UIApplication sharedApplication] setAlternateIconName:@"shuiguo" completionHandler:^(NSError * _Nullable error) { | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment