如何在iPhone App中列出SIngle开发人员的所有iPhone App? [英] How to list All iPhone Apps By a SIngle developer in iPhone App?

查看:173
本文介绍了如何在iPhone App中列出SIngle开发人员的所有iPhone App?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序"中,我想在表视图中显示来自iTunes存储的所有iPhone应用程序.如果用户单击单元格中的任何一个单元格,则将转到该应用程序的应用程序商店.通过提供每个应用程序的链接,我只是静态地知道.根据我的需要,在安装后我还需要获取新的应用程序.

In My Application I want show all my iPhone apps from itunes store in a tableview. If user clicks any one of cell it leads to take to appstore of that application.I know just statically by giving link of each application. As per my need i need to get new apps also after this installation.

推荐答案

您可以使用Apple提供的search Web服务:

You can use the search web service provided by Apple: http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html#searching

我找不到通过艺术家ID搜索软件的方法,但是您仍然可以使用开发者名称执行通用查询.

I couldn't find a way to search by artist ID for software, but you can still perform a generic query using the developer name.

例如,这将通过Gameloft返回应用程序:

For example, this would return apps by Gameloft:

http://itunes.apple. com/search?term = Gameloft& media = software& lang = zh_CN& country = us

请注意,这是按名称查询的,因此您可能会有误报(出现名称为 Gameloft 的应用,但不是真正的Gameloft应用).您必须检查每个返回的应用程序的artistId属性(在这种情况下,Gameloft的artistId为282764297).

Note that it's a query by name,so you can have false positives (apps where the name Gameloft appears but are not real Gameloft apps). You have to check the artistId property for each returned app (in this case, Gameloft's artistId is 282764297).

如果要打开App Store的特定应用程序,请使用从先前的Web服务获得的trackId,然后

If you want to open the App Store to a specific app, use the trackId you got from the previous web service and then

[[UIApplication sharedApplication] openURL:
 [NSURL URLWithString:
  [NSString stringWithFormat:
   @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d",
   trackId]]];

这篇关于如何在iPhone App中列出SIngle开发人员的所有iPhone App?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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