此代码会通过应用商店吗? [英] Does this code pass the app store?
本文介绍了此代码会通过应用商店吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要知道用户的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
}
理论上可以做到的
问题是在实践中,它可以通过应用商店吗?
我可以使用"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屋!
查看全文