用私有API得到iOS系统里安装的所有APP

#include 
Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];
NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]);

可以用于非越狱iOS系统。也许可以靠混淆拼接字符串绕过审核,值得一试。

你可能感兴趣的:(objective-c,ios,cocoa-touch)