首页 > 代码库 > 获取手机所有安装的app(转的)

获取手机所有安装的app(转的)

获取手机所有安装的app

by 伍雪颖

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

方法是私有的

获取手机所有安装的app(转的)