在我的应用程序中的App Store中打开我的应用程序列表

我已经从苹果网站上检查了(Top Paid Apps)示例代码,在这里你可以看到App商店中所有的顶级应用程序,我想在我的应用程序中做同样的事情,但只显示我的应用程序在App Store中。 这是我在该示例中find的URL:

http://phobos.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/toppaidapplications/limit=75/xml

我需要在这个URL中更改只显示我的应用程序?

在iOS 6中引入了SKStoreProductViewController这非常简单。用户可以在应用程序中直接购买其他应用程序。

首先将StoreKit.framework添加到您的项目。 然后find使用iTunes链接到您的应用程序的iTunesurl。 您可以复制iTunes Store中的链接。 例如,Apple应用程序的URL是http://itunes.apple.com/de/artist/apple/id284417353?mt=12它包含iTunes标识符,您传递给SKStoreProductViewController

示例代码:

 #import "ViewController.h" #import <StoreKit/SKStoreProductViewController.h> @interface ViewController ()<SKStoreProductViewControllerDelegate> @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; [self showMyApps]; } -(void)showMyApps { SKStoreProductViewController* spvc = [[SKStoreProductViewController alloc] init]; [spvc loadProductWithParameters:@{SKStoreProductParameterITunesItemIdentifier : @284417353} completionBlock:nil]; spvc.delegate = self; [self presentViewController:spvc animated:YES completion:nil]; } -(void)productViewControllerDidFinish:(SKStoreProductViewController *)viewController { [self dismissViewControllerAnimated:YES completion:nil]; } @end 

你可以使用DAAppsViewController 。 它可以configuration一个开发人员ID来显示该开发人员的所有应用程序。 它将使用StoreKit(如果可用),否则将回切换到App Store。