动态修改图标需要 iOS 10.3 之后的版本,系统提供的方法如下
@interface UIApplication (UIAlternateApplicationIcons)
// If false, alternate icons are not supported for the current process.
// 如果为false,则当前进程不支持备用图标。
@property (readonly, nonatomic) BOOL supportsAlternateIcons NS_EXTENSION_UNAVAILABLE("Extensions may not have alternate icons") API_AVAILABLE(ios(10.3), tvos(10.2));
// Pass `nil` to use the primary application icon. The completion handler will be invoked asynchronously on an arbitrary background queue; be sure to dispatch back to the main queue before doing any further UI work.
// 传递'