获取iPhone上已安装应用的列表 [英] Get list of installed apps on iPhone

查看:308
本文介绍了获取iPhone上已安装应用的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有办法(某些API)获取iPhone设备上安装的应用程序列表。

Is there a way (some API) to get the list of installed apps on an iPhone device.

在搜索类似问题时,我发现了一些与 url registration ,但我认为必须有一些API来执行此操作,因为我不想对应用程序做任何事情,我只想要列表。

While searching for similar questions, I found some thing related to url registration, but I think there must be some API to do this, as I don't want to do any thing with the app, I just want the list.

推荐答案

不,应用程序是沙箱,Apple接受的API不包含任何可以让您这样做的内容。

No, apps are sandboxed and Apple-accepted APIs do not include anything that would let you do that.

但是,您可以测试是否安装了某个应用:

You can, however, test whether a certain app is installed:


  • 如果应用已知使用 [[UIApplication sharedApplication] canOpenURL处理某种类型的URL

  • :[NSURL URLWithString:@thisapp:// foo]

  • if the app is known to handle URLs of a certain type
  • by using [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"thisapp://foo"]

您可以从这里

这篇关于获取iPhone上已安装应用的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆