简体   繁体   English

是否可以在 ios 中获取已安装的应用程序

[英]Is it possible to get installed apps in ios

是否可以在 iOS 11 中以编程方式获取正在运行/已安装的应用程序列表。如果有人知道答案,请帮助我。我搜索了很多网站以寻求答案,大多数都表明这是不可能的。请帮助我

Ok you cannot get all the application but you can achieve your task in different way.好的,您无法获得所有应用程序,但您可以通过不同的方式完成任务。 There is an app called Carat on App Store which lists the apps that consumes battery. App Store 上有一个叫 Carat 的应用程序,它列出了消耗电池的应用程序。 And here is the GitHub link for that app这是该应用程序的 GitHub 链接

Carat 克拉

Maybe it will be helpful to you或许对你有帮助

You can use the AppList library to get a list of all installed apps.您可以使用 AppList 库获取所有已安装应用程序的列表。 It uses private frameworks so it's also jailbreak-only.它使用私有框架,因此也只能越狱。 Check it out at https://github.com/rpetrich/AppList .https://github.com/rpetrich/AppList查看。

OR或者

You can also read the /Applications folder.您还可以阅读 /Applications 文件夹。 All installed applications are available in it.所有已安装的应用程序都可以在其中使用。 You need to list the directories in /Applications using NSFileManager:您需要使用 NSFileManager 列出 /Applications 中的目录:

NSArray *appFolderContents = [[NSFileManager defaultManager] directoryContentsAtPath:@"/Applications"]; NSArray *appFolderContents = [[NSFileManager defaultManager] directoryContentsAtPath:@"/Applications"];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM