ios 获取手机上app列表
发布日期:2021-06-20 03:26:10
浏览次数:7
分类:技术文章
本文共 1916 字,大约阅读时间需要 6 分钟。
- (void)getAppList{ id space = [NSClassFromString(@"LSApplicationWorkspace") performSelector:@selector(defaultWorkspace)]; NSArray *plugins = [space performSelector:@selector(installedPlugins)]; NSMutableSet *list = [[NSMutableSet alloc] init]; for (id plugin in plugins) { id bundle = [plugin performSelector:@selector(containingBundle)]; if (bundle) [list addObject:bundle]; } int a = 1; for (id plugin in list) { NSLog(@"? %d--",a); a++; NSLog(@"bundleIdentifier =%@", [plugin performSelector:@selector(bundleIdentifier)]);//bundleID NSLog(@"applicationDSID =%@", [plugin performSelector:@selector(applicationDSID)]); NSLog(@"applicationIdentifier =%@", [plugin performSelector:@selector(applicationIdentifier)]); NSLog(@"applicationType =%@", [plugin performSelector:@selector(applicationType)]); NSLog(@"dynamicDiskUsage =%@", [plugin performSelector:@selector(dynamicDiskUsage)]); NSLog(@"itemID =%@", [plugin performSelector:@selector(itemID)]); NSLog(@"itemName =%@", [plugin performSelector:@selector(itemName)]); NSLog(@"minimumSystemVersion =%@", [plugin performSelector:@selector(minimumSystemVersion)]); NSLog(@"requiredDeviceCapabilities =%@", [plugin performSelector:@selector(requiredDeviceCapabilities)]); NSLog(@"sdkVersion =%@", [plugin performSelector:@selector(sdkVersion)]); NSLog(@"shortVersionString =%@", [plugin performSelector:@selector(shortVersionString)]); NSLog(@"sourceAppIdentifier =%@", [plugin performSelector:@selector(sourceAppIdentifier)]); NSLog(@"staticDiskUsage =%@", [plugin performSelector:@selector(staticDiskUsage)]); NSLog(@"teamID =%@", [plugin performSelector:@selector(teamID)]); NSLog(@"vendorName =%@", [plugin performSelector:@selector(vendorName)]); } return;}
转载地址:https://blog.csdn.net/Fu_Tong/article/details/91386988 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
留言是一种美德,欢迎回访!
[***.207.175.100]2024年03月17日 03时30分26秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
c语言宏定义只能在最前面吗,C语言宏定义注意事项
2019-04-21
android悬浮窗服务卡死,Android 悬浮窗兼容问题谈
2019-04-21
表格相关的html语言,HTML标记语言——表格标记
2019-04-21
web聊天界面html,PC端Web聊天界面+代码分享(HTML+CSS)
2019-04-21
cmake qt 添加路径 项目_CMake配置Qt工程
2019-04-21
使用python开发的软件协议_WEB开发——Python WSGI协议详解
2019-04-21
冰点下载器手机版apk_冰点文库下载器
2019-04-21
python信号采集代码_13行代码实现:Python实时视频采集(附源码)
2019-04-21
h5引入json_纯js直接引入json文件
2019-04-21
python格式化字符串总结_Python字符串处理方法总结
2019-04-21
python中true什么意思_python中的bool是什么意思
2019-04-21
jacobian 矩阵意义_Jacobian矩阵和Hessian矩阵的作用是什么?
2019-04-21
c++ jna 数据类型_JNA 使用总结
2019-04-21
python中如何遍历列表并将列表值赋予_python中如何实现遍历整个列表?
2019-04-21
xlnt库如何编译_最新mysql数据库源码编译安装。
2019-04-21
mysql 2003错误 10055_MYSQL无法连接---提示10055错误
2019-04-21
mysql redis缓存层_redis实现缓存的两种方式
2019-04-21
git 改local branch名字_用Git管理Latex写论文的工作流程
2019-04-21
mysql索引篇_MySQL索引篇
2019-04-21