10

是否可以在 iOS 6 中显示模态视图控制器,在 App Store 中显示我的应用程序?

4

1 回答 1

25

是的你可以。(iOS6+)

看看SKStoreProductViewController

NSDictionary *appParameters = [NSDictionary dictionaryWithObject:@"533886215"
                                                          forKey:SKStoreProductParameterITunesItemIdentifier];

SKStoreProductViewController *productViewController = [[SKStoreProductViewController alloc] init];
[productViewController setDelegate:self];
[productViewController loadProductWithParameters:appParameters
                                 completionBlock:^(BOOL result, NSError *error)
{

}];
[self presentViewController:productViewController
                   animated:YES
                 completion:^{

                 }];
于 2012-10-18T20:31:02.800 回答