1.应用间的跳转
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"https://itunes.apple.com/cn/app/id1104759817?mt=8"]];
2.应用内部跳转(点击跳转后响应不及时)
引入StoreKit.framework
在.m文件中引入 #import
SKStoreProductViewController *storeProductVC = [[SKStoreProductViewController alloc] init];
storeProductVC.delegate = self;
[storeProductVC loadProductWithParameters:@{SKStoreProductParameterITunesItemIdentifier:@"1104759817"} completionBlock:^(BOOL result, NSError * _Nullable error) {
if (error) {
NSLog(@"error %@ with userInfo %@", error, error.userInfo);
} else {
[self presentViewController:storeProductVC animated:YES completion:nil];
}
}];