是否可以在iOS 6中显示模态视图 Controller ,以在App Store中展示我的应用程序?
最佳答案
是的,可以。 (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:^{
}];