有任何想法吗?
提前致谢.
- (voID)requestProductData:(Nsstring *)aFeatureID { sllog(@"Products Request For: %@",aFeatureID); SKProductsRequest *request = [[SKProductsRequest alloc] initWithProductIDentifIErs:[NSSet setWithObject:aFeatureID]]; request.delegate = self; [request start];}- (voID)productsRequest:(SKProductsRequest *)request dIDReceiveResponse:(SKProductsResponse *)response{ if ([response.products count] > 0) { [self.purchasableObjects addobjectsFromArray:response.products];#ifndef NDEBUG for(int i=0;i<[self.purchasableObjects count];i++) { SKProduct *product = [self.purchasableObjects objectAtIndex:i]; sllog(@"Feature: %@,Cost: %f,ID: %@",[product localizedTitle],[[product price] doubleValue],[product productIDentifIEr]); } for(Nsstring *invalIDProduct in response.invalIDProductIDentifIErs) sllog(@"Problem in iTunes connect configuration for product: %@",invalIDProduct);#endif isProductsAvailable = YES; } else if ([response.invalIDProductIDentifIErs count] > 0){ sllog(@"MKStoreManager-productsRequest empty results: %@",[response.invalIDProductIDentifIErs objectAtIndex:0]); } if([_delegate respondsToSelector:@selector(productFetchComplete)]) [_delegate productFetchComplete]; [request autorelease];}解决方法 这是有人在Cocoa-dev@Lists.apple.com上告诉我的:
Are you connecting to the SandBox
environment or production?I belIEve you can only connect to
SandBox when launched via Xcode and
if the app is being ‘upgraded’ from an
App Store version,it won’t trigger
the SandBox. At least,that’s a tiny
bit of IAP voodoo I’ve witnessed…
That means it Could cease to be true
at any moment,as IAP setup is one
sacrificial lamb away from being
magic.
我不是吗?我确定这个因为我还没有测试过,但我会尽快通知你.
总结以上是内存溢出为你收集整理的iphone – 在应用程序购买时,SKProductsRequest在设备上已安装App时无法正常工作全部内容,希望文章能够帮你解决iphone – 在应用程序购买时,SKProductsRequest在设备上已安装App时无法正常工作所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)