我使用本教程 Ray wenderlich开发了一个应用程序购买应用程序, 它运行良好。但是我需要在应用程序加载时从 iTunes 连接获取产品描述。iam 能够使用以下代码在应用程序购买页面中显示相同的内容,但在加载时间不能做同样的事情?
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response {
NSLog(@"Loaded list of products...");
_productsRequest = nil;
NSArray * skProducts = response.products;
SKProduct * product = (SKProduct *)skProducts[0];
NSLog(@"naveen -->%@",product.localizedDescription); //will give description of product
for (SKProduct * skProduct in skProducts) {
NSLog(@"Found product: %@ %@ %0.2f",
skProduct.productIdentifier,
skProduct.localizedTitle,
skProduct.price.floatValue);
}
_completionHandler(YES, skProducts);
_completionHandler = nil;
}