SKProductsRequest ios 7不调用delegate

时间:2014-04-29 11:12:46   收藏:0   阅读:1565

在iOS7中,内购只能在真机上才会调用

- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response协议方法

 

若是用模拟器,它回调用

- (void)request:(SKRequest *)request didFailWithError:(NSError *)error

{

    DLog(@"error ====== %@", error);

}

log:  

error ====== Error Domain=SSErrorDomain Code=2 "无法连接到 iTunes Store" UserInfo=0xb56aaa0 {NSLocalizedDescription=无法连接到 iTunes Store}

SKProductsRequest ios 7不调用delegate,码迷,mamicode.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!