如何确定我们的设备中是否存在 iphone 应用程序(上一个/下一个版本)? [英] How to determine, whether an iphone app (previous/next version) is existed in our device or not?

查看:39
本文介绍了如何确定我们的设备中是否存在 iphone 应用程序(上一个/下一个版本)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 我有一个有 2 个版本的应用...... iPaint1 (FreeVersion) &iPaint2(付费版)

iPaint 2 除了 iPaint1 的功能外,还有额外的功能..

iPaint 2 has extra features along with the features of iPaint1..

  • 如果用户有 iPaint1 &如果他安装了 Paint2,也是如此.

现在我们需要在用户启动/使用paint2时显示一个警报.警报将弹出为

Now we need to display An alert when user launch/uses paint2. Alert will be pop up as

您已经在第二个版本中拥有paint1的所有功能,删除Paint1以释放空间"

仅当我们的设备中存在 iPain1 时,否则不需要警报 怎么可能.

only if iPain1 is existed in our device, otherwise no need of alert How is it possible.

(我想我们可以使用 AppStore ID 和 Bundle Identifier 来实现这一点,但不确定也不知道过程)

(I guess we may achieve this this using AppStore ID & Bundle Identifier but not sure and don't know the process)

提前致谢

但它在模拟器上有效,但在 iPod 中无效

答案:

我终于在@MDT 的回答中找到了解决方案.也感谢你@MDT 和其他人.

Finally i Got solution in @MDT 's answer. thank u @MDT and others as well.

感谢您的快速回复.此链接对这个问题很有用.

Thank you for your quick response.. This link is useful for this question.

是是否可以获取有关 iPhone 上安装的所有应用程序的信息?

并在

http:///www.iphonedevsdk.com/forum/iphone-sdk-development/22289-possible-retrieve-these-information.html#post101753

但它适用于模拟器,但不适用于 iPod 请提供任何建议.

But It is works on simulator but not in iPod any advice pls.

推荐答案

不越狱,应用程序无法直接获取iOS 设备上所有已安装应用的列表.

Without jailbreaking, there is no way for an app to directly get a list of all installed apps on an iOS device.

http://www.quora.com/An-iOS-App-how-to-find-all-other-application-on-the-iPhone

您最好的选择可能是使用自定义 URL 方案.通过这些,您可以在您的免费应用中实现一个链接,如果安装了付费应用,它就会打开该链接.

Your best alternative may to be use of custom URL schemes. With these you can implement a link in your free app that opens the paid one if it is installed.

这篇关于如何确定我们的设备中是否存在 iphone 应用程序(上一个/下一个版本)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆