- app内直接跳AppStore下载页。
NSString *str = [NSString stringWithFormat:@"https://itunes.apple.com/us/app/id%d",414478124]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
- app内以模态页直接打开AppStore的下载页。
NSDictionary *appParameters = [NSDictionary dictionaryWithObject:@"414478124" forKey:SKStoreProductParameterITunesItemIdentifier];
SKStoreProductViewController *productViewController = [[SKStoreProductViewController alloc] init]; [productViewController setDelegate:self]; [productViewController loadProductWithParameters:appParameters completionBlock:^(BOOL result, NSError *error) { }];
[self presentViewController:productViewController animated:YES completion:^{ }];