以编程方式在 App Store 上运行搜索? [英] Programmatically run a search on the App Store?

查看:23
本文介绍了以编程方式在 App Store 上运行搜索?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从我的应用程序中打开 App Store 应用程序并运行搜索?

Is it possible to open the App Store app from within my app and run a search?

我想看看是否有我可以使用的 appstore://类型的 URL,就像 mailto: 和 sms: 分别打开 Mail 和 SMS 一样.

I'm looking to see if there's an appstore:// type URL that I could use, in the same way that mailto: and sms: open Mail and SMS respectively.

有人知道这是否可能吗?

Does anyone know if this is possible?

编辑 - 更多信息:

我一直在尝试使用 UIApplication 的 openURL: 方法,传递各种形式的 phobos 和 iTunes URL,但到目前为止都没有成功.

I've been trying using UIApplication's openURL: method, passing various forms of phobos and iTunes URLs, with no luck so far.

有些人可能知道您可以右键单击桌面上 iTunes 中的链接并将链接复制到某些页面.我将链接复制到了一个页面,该页面列出了特定公司的所有应用.

Some may be aware that you can right-click links in iTunes on the desktop and copy links to certain pages. I copied the link to a page that listed all the apps for a particular company.

有些人可能还知道,您可以在 iPhone 上的 App Store 应用中搜索公司名称,搜索结果将是该公司拥有的所有应用.

Some may also be aware that you can do a search in the App Store app on the iPhone for a company name and the search results will be all the apps owned by that company.

我正在尝试通过我的应用程序中的链接实现这一目标...

I'm trying to achieve that via a link from my app...

在桌面上使用从 iTunes 复制的链接只需打开 Safari,然后打开 iTunes 应用程序,最后以无法连接到 iTunes Store"消息结束.这与 URL 以 phobos 还是 itunes 开头无关.

Using the link copied from iTunes on the desktop simply opens Safari, and then opens the iTunes app, and finally ends with a "Cannot connect to iTunes Store" message. This is regardless of whether or not the URL starts with phobos or itunes.

这是我一直在尝试使用的链接(ID 已修剪)

Here is the link I've been trying to use (ID trimmed)

http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=someId

任何想法都会很棒,谢谢.

Any ideas would be awesome, thanks.

推荐答案

Erika Sadun 解释了如何构建 App Store 搜索链接 此处.

Erika Sadun explains how to build an App Store search link here.

这篇关于以编程方式在 App Store 上运行搜索?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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