我已经查看了其他答案,但它们似乎不能解决我的问题。我有一个即将发布的新应用程序,正在处理应用内购买部分。我之前在一款应用程序中使用过IAP,所以我认为移植应该很简单。然而,问题是每当我运行SKProductsRequest时,它都返回一个空的结果集。
我使用以下代码进行请求:
我使用以下代码进行请求:
productIdentifierList = [[NSMutableArray alloc] init];
[productIdentifierList addObject:[NSString stringWithFormat:@"xxxxxxxxxx"]];
SKProductsRequest *request = [[SKProductsRequest alloc] initWithProductIdentifiers:[NSSet setWithArray:productIdentifierList]];
响应返回到
-(void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response {
NSLog(@"Recieved Product Response %@",response.products);
[productDetailsList addObjectsFromArray: response.products];
[productDisplayTableView reloadData];
}
我似乎没有得到任何返回的结果。我已经检查了id,它们看起来没问题;我也从我的iPhone设备通过Xcode运行,但仍然没有运气。调试器中的响应也没有提供很多信息。
有人可以为这个问题提供一些解决方案吗?