失敗:- SKProduct要求は、私はこのコードを実装しています
if ([SKPaymentQueue canMakePayments])
{
// Display a store to the user.
NSLog(@"Device Can Make Payments");
SKProductsRequest *ProductRequst = [[SKProductsRequest alloc]initWithProductIdentifiers:[NSSet setWithObjects:@"slalomtfcoins", nil]];
ProductRequst.delegate = self;
[ProductRequst start];
}
else {
// Warn the user that purchases are disabled.
NSLog(@"Device Can't Make Payments");
UIAlertView *thealert = [[UIAlertView alloc]initWithTitle:@"Your Device Limited" message:@"we have noticed that you device restrictions setting are currently limited. you can change it ny going to Settings -> General -> Restrictions and turn it off" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
[thealert show];
[thealert release];
}
-(void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response{
SKProduct *VailProduct = nil;
NSLog(@"%d",[response.products count]);
int count = [response.products count];
if (count>0) {
VailProduct = [response.products objectAtIndex:0];
NSLog(@"Products are availble");
} else if (!VailProduct){
NSLog(@"Products are Not availble");
}
}
とログプリント "製品がavailbleではないです"。 私のp.listのバンドルIDは正しい で、製品IDはitunes接続と同じです。
何が問題ですか?
おかげ
お持ちの場合iTunesの製品を作成しただけで接続することがありますが、テストする前にしばらく時間がかかることがあります。 –