- app內(nèi)直接跳AppStore下載頁(yè)。
NSString *str = [NSString stringWithFormat:@"https://itunes.apple.com/us/app/id%d",414478124]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
- app內(nèi)以模態(tài)頁(yè)直接打開(kāi)AppStore的下載頁(yè)。
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:^{ }];