Does this code pass the app store?

╄→尐↘猪︶ㄣ 提交于 2019-12-11 10:12:23

问题


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

I have this code

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

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

which in theory does the job

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


回答1:


No.

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



来源:https://stackoverflow.com/questions/33854183/does-this-code-pass-the-app-store

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!