这段代码是否通过了app store?
我需要知道用户是否有他的iPhone设备上的某些应用程序
我有这个代码
BOOL isInstalled = [[LSApplicationWorkspace defaultWorkspace] applicationIsInstalled:@"com.app.identifier"]; if (isInstalled) { // app is installed } else { // app is not installed }
这在理论上是做这个工作的
问题是在实践中,是否通过应用程序商店? 我可以使用"LSApplicationWorkspace"
类吗?
没有。
所有引用私有API甚至未公开API的应用程序都是不允许的。