iphone - iPhone应用程序是否存在于您的设备中?在iPod/iPhone设备上不起作用,仅在模拟器上起作用。

标签 iphone objective-c ios4 app-store ios-simulator

要知道给定设备上安装了哪些应用程序,我遵循以下方法。

How to determine, whether an iphone app (previous/next version) is existed in our device or not?

这可以找到完美安装在 SIMULATOR 中的应用程序(用户的应用程序和系统应用程序)。

但无法在我的原始设备iPod / iPhone中找到。

为什么以及如何针对设备进行纠正?

最佳答案

无法通过非越狱设备实现此目标。

如果他们注册了custom url,则有一种方法(实际上是一种解决方法)来检测您自己的应用程序:此处介绍了方法:How To Detect Installed iOS Apps

编辑:如果您决定采用这种方式,则可以在此处学习如何注册自定义网址:

Registering Custom URL Schemes

Objective-C: Custom URL Schemes

EDIT :附加信息之后:您想检查您的应用程序是否已安装并且此应用程序注册了paintplus URL方案

您可以使用此方法(在其他应用程序中)检查是否已安装paintplus:

- (BOOL) paintplusInstalledOnThisDevice {

  UIApplication *app = [UIApplication sharedApplication];  
  NSURL *paintplusURL = [NSURL URLWithString: @"paintplus://"];
  return [app canOpenURL: paintplusURL];
}

关于iphone - iPhone应用程序是否存在于您的设备中?在iPod/iPhone设备上不起作用,仅在模拟器上起作用。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10105001/

相关文章:

objective-c - 如何从弱属性中移除 KVO?

objective-c - 如何使用数组使按钮按特定顺序播放声音?

iphone - Core Data 可以满足我的 "system vs. user data"迁移需求吗?

ios - SQL 查询由于某种原因不工作

objective-c - 使用 CLLocationManager 和 MKReverseGeocoder 获取城市名称

iphone - 如何以编程方式在 iPhone 上启动 Contacts.app

iphone - 如何从 iOS 设置包启动 URL?

ios4 - 使用着色器平滑点 OpenGL ES 2.0

iphone - Storyboard UITableView 中的自定义单元格未在带有 UITableViewCellStyleDefault 的 ios7 中被拾取

iphone - 特定部分的 UITableView allowsSelection 属性