这段代码能通过应用商店吗? [英] Does this code pass the app store?

查看:27
本文介绍了这段代码能通过应用商店吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道用户是否在他的 iphone 设备上安装了某些应用

I need to know if user has certain apps on his iphone device

我有这个代码

BOOL isInstalled = [[LSApplicationWorkspace defaultWorkspace] applicationIsInstalled:@"com.app.identifier"];

if (isInstalled) {
    // app is installed }
else {
    // app is not installed
}

理论上可以完成这项工作

which in theory does the job

问题是在实践中,是否通过了应用商店?我可以使用 "LSApplicationWorkspace" 类吗?

the question is in practice, does it pass the app store? can i use the "LSApplicationWorkspace" class ?

推荐答案

没有

不允许引用私有 API 的所有应用程序,甚至是未记录的 API.

All applications referencing private APIs and even undocumented APIs are not allowed.

这篇关于这段代码能通过应用商店吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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