如何在 iPhone 应用程序中列出单个开发人员的所有 iPhone 应用程序? [英] How to list All iPhone Apps By a SIngle developer in iPhone App?
问题描述
在我的应用程序中,我想在 tableview 中显示来自 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
网络服务:http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html#searching
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=en_US&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 到一个特定的应用程序,使用你从之前的网络服务中获得的 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 应用程序中列出单个开发人员的所有 iPhone 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!