我正在实现应用程序内购买,并通过以下方式将请求发送到苹果商店
- (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];
}
根本不会被召唤。在我尝试的十次尝试中,它只调用了一次。
https://stackoverflow.com/questions/2728874
复制相似问题