|
@@ -973,23 +973,25 @@ static const char encodingTable[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopq
|
|
|
|
|
|
+ (void)lc_setAlternateIconName:(NSString*)iconName
|
|
|
{
|
|
|
+ //超级签换不了图片 旧版本升级会有问题 不要了
|
|
|
+
|
|
|
//anti apple private method call analyse
|
|
|
- if ([[UIApplication sharedApplication] respondsToSelector:@selector(supportsAlternateIcons)] &&
|
|
|
- [[UIApplication sharedApplication] supportsAlternateIcons])
|
|
|
- {
|
|
|
- NSMutableString *selectorString = [[NSMutableString alloc] initWithCapacity:40];
|
|
|
- [selectorString appendString:@"_setAlternate"];
|
|
|
- [selectorString appendString:@"IconName:"];
|
|
|
- [selectorString appendString:@"completionHandler:"];
|
|
|
-
|
|
|
- SEL selector = NSSelectorFromString(selectorString);
|
|
|
- IMP imp = [[UIApplication sharedApplication] methodForSelector:selector];
|
|
|
- void (*func)(id, SEL, id, id) = (void *)imp;
|
|
|
- if (func)
|
|
|
- {
|
|
|
- func([UIApplication sharedApplication], selector, iconName, ^(NSError * _Nullable error) {});
|
|
|
- }
|
|
|
- }
|
|
|
+// if ([[UIApplication sharedApplication] respondsToSelector:@selector(supportsAlternateIcons)] &&
|
|
|
+// [[UIApplication sharedApplication] supportsAlternateIcons])
|
|
|
+// {
|
|
|
+// NSMutableString *selectorString = [[NSMutableString alloc] initWithCapacity:40];
|
|
|
+// [selectorString appendString:@"_setAlternate"];
|
|
|
+// [selectorString appendString:@"IconName:"];
|
|
|
+// [selectorString appendString:@"completionHandler:"];
|
|
|
+//
|
|
|
+// SEL selector = NSSelectorFromString(selectorString);
|
|
|
+// IMP imp = [[UIApplication sharedApplication] methodForSelector:selector];
|
|
|
+// void (*func)(id, SEL, id, id) = (void *)imp;
|
|
|
+// if (func)
|
|
|
+// {
|
|
|
+// func([UIApplication sharedApplication], selector, iconName, ^(NSError * _Nullable error) {});
|
|
|
+// }
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
+ (UIViewController *)appRootViewController {
|