iOS开发中获取app列表

注:以下方法都不能通过App Store审核,仅供学习参考。

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

另外还有这个

你可能感兴趣的:(iOS开发中获取app列表)