productsRequest响应方法不调用 [英] productsRequest response method is not calling
本文介绍了productsRequest响应方法不调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在通过
- (void) requestProductData
{
SKProductsRequest *request= [[SKProductsRequest alloc] initWithProductIdentifiers:
[NSSet setWithObjects: featureAId,featureBId,nil]]; // add any other product here
request.delegate = self;
[request start];
}
响应方法
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response
{
[purchasableObjects addObjectsFromArray:response.products];
}
根本没有呼叫。只有一次,它尝试了十次尝试。
is not getting call at all. only once it called out of ten attempts i tried.
任何想法有关这个..?
提前感谢
any idea regarding this..? thanks in advance
推荐答案
尝试实现 - (void)request:(SKRequest *)请求didFailWithError:(NSError *)error
方法 - 可能在处理您的请求时出现一些错误。
Try to implement also - (void)request:(SKRequest *)request didFailWithError:(NSError *)error
method - may be there're some errors in processing of your requests.
这篇关于productsRequest响应方法不调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文