Does this code pass the app store?

2019-08-07 02:10发布

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条回答
女痞
2楼-- · 2019-08-07 02:26

No.

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

查看更多
登录 后发表回答