是否可以在iOS 6中显示一个模态视图控制器,在App Store中显示我的应用程序?
答案 0 :(得分:24)
是的,你可以。 (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:^{
}];