1

我正在使用此代码在 ios 中安装应用程序:

 ( NSArray * )installedApps{


NSMutableArray * array = [[NSMutableArray alloc] init];
Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];
//  NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]);


return [workspace performSelector:@selector(allApplications)];

}

这行得通,但我想知道它是否允许在 Apple Store 上使用,并且它不使用私有 API

4

0 回答 0