SKProductRequest同步
我已经在操作块中启动产品请求
NSOperationQueue * queue = [[NSOperationQueue alloc] init];
[queue addOperationWithBlock:^{
SKProductsRequest * request= [[SKProductsRequest alloc] initWithProductIdentifiers: selectedSKIdentifiers];
request.delegate = self;
[request start];
}];
,所以我想使用一些同步版本,例如下载数据
NSData * data = [[NSData alloc] initWithContentsOfURL:url];
或解析 XML 时也是同步的
NSXMLParser * parser = [[NSXMLParser alloc] initWithData:xmlData];
[parser setDelegate:self];
[parser parse];
[parser release];
有没有办法进行 SKProductsRequest 同步
苹果文档今天运气好,能获得有关此主题的更多信息
i start the product request already in a operation block
NSOperationQueue * queue = [[NSOperationQueue alloc] init];
[queue addOperationWithBlock:^{
SKProductsRequest * request= [[SKProductsRequest alloc] initWithProductIdentifiers: selectedSKIdentifiers];
request.delegate = self;
[request start];
}];
so i would like to use some synchronous version, like when downloading data
NSData * data = [[NSData alloc] initWithContentsOfURL:url];
or parsing XML is also synchronous
NSXMLParser * parser = [[NSXMLParser alloc] initWithData:xmlData];
[parser setDelegate:self];
[parser parse];
[parser release];
Is there a way for to do the SKProductsRequest synchronous
The apple documentation luck on further info on this topic at this day
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了一种使任何方法同步的方法:
确保调用!!!!!!!!!!!!!!!!!!
然后在代表中。
i found a way how to make any method synchronous :
Make sure to invoke!!!!!!!!!!!!!!!!!
In the delegate(s) then.