2014-01-29 232 views
0

我的代碼

#define kMyFeatureIdentifier @"com.yourcompany.FussballQuiz" 
- (void) initializeStore 
{ 
     SKProductsRequest *request= [[SKProductsRequest alloc] 
          initWithProductIdentifiers: 
          [NSSet setWithObject: kMyFeatureIdentifier]]; 
     request.delegate = self; 
     [request start]; 
} 
-(void)productsRequest:(SKProductsRequest *)request didReceiveResponse: (SKProductsResponse *)response 
{ 

} 
- (void) request:(SKRequest *)request didFailWithError:(NSError *)error 
{ 
    NSLog(@"Failed to connect with error: %@", [error localizedDescription]); 
} 

輸出

失敗與錯誤連接:無法連接到iTunes Store的 .. 爲什麼不能在iphone打電話didReceiveResponse?無法連接iTunes Store購買流程?

+0

你怎麼測試呢?模擬器還是設備?您現在只能在設備上測試purhcases – CW0007007

+0

模擬器用於測試 – user3209379

+0

請參閱我的答案.. – CW0007007

回答

相關問題