首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >productsRequest响应方法未调用

productsRequest响应方法未调用
EN

Stack Overflow用户
提问于 2010-04-28 19:12:24
回答 3查看 13.3K关注 0票数 18

我正在实现应用程序内购买,并通过以下方式将请求发送到苹果商店

- (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];
}

根本不会被召唤。在我尝试的十次尝试中,它只调用了一次。

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2728874

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档