`

获取IOS设备上安装的应用

    博客分类:
  • ios
阅读更多
#include <objc/runtime.h>
Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];
NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]);

 

上架AppStore需要进行代码混交,不然通不过审核

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics