SKStoreProductViewController预载

时间:2018-11-19 09:20:04

标签: ios iphone

使用以下方法非常缓慢地加载应用商店。 如何预加载SKStoreProductViewController页面。谢谢

SKStoreProductViewController *storeProductViewContorller = [[SKStoreProductViewController alloc] init];
storeProductViewContorller.modalPresentationCapturesStatusBarAppearance = true;
storeProductViewContorller.delegate = self;
[storeProductViewContorller loadProductWithParameters:@{SKStoreProductParameterITunesItemIdentifier : self.ad.pkg_name} completionBlock:^(BOOL result, NSError *error) {
    if(error) {
        NSLog(@"error%@",error);
    }
    else {
    }
}];
[self presentViewController:storeProductViewContorller animated:YES completion:nil];

0 个答案:

没有答案