SKStoreProductViewController显示开发人员的应用程序

编程入门 行业动态 更新时间:2024-10-26 02:25:51
本文介绍了SKStoreProductViewController显示开发人员的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用 SKStoreProductViewController 来实现更多应用功能,但是当我点击列表上的产品时,我只得到空白屏幕,在控制台中也是一个警告:

i'm using SKStoreProductViewController to implement "more apps" functionality, but when I tap on a product on the list, i'm getting only blank screen, there is also a warning in console:

无法请求视图控制器:错误Domain = _UIViewServiceInterfaceErrorDomain Code = 2无法完成操作。 (_UIViewServiceInterfaceErrorDomain错误2。)

Could not request view controller: Error Domain=_UIViewServiceInterfaceErrorDomain Code=2 "The operation couldn’t be completed. (_UIViewServiceInterfaceErrorDomain error 2.)"

这只发生在ios 7上,在ios 6中它只是重定向到app store,这是我的代码:

this happens only on ios 7, in ios 6 it simply redirects to app store, here is my code:

SKStoreProductViewController *productVC = [[SKStoreProductViewController alloc] init]; productVC.delegate = self; NSDictionary *productParameters = @{ SKStoreProductParameterITunesItemIdentifier : <itunes developer ID>}; [productVC loadProductWithParameters:productParameters completionBlock:^(BOOL result, NSError *error) { if(error) { [[UIAlertView alloc] initWithTitle:[error localizedDescription] message:nil delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil, nil] show]; } if (result ) { [self presentViewController:productVC animated:NO completion:nil]; } }];

我认为这是ios 7错误,任何帮助都很大程度上是

i think this is ios 7 bug, any help greatly appricated

推荐答案

这是iOS 7中的一个错误。请参阅 devforums.apple/message/951745 (需要Apple dev登录),Apple员工确认SKSPVC目前不支持此版本。目前仅支持展示单个产品。

This is a bug in iOS 7. See devforums.apple/message/951745 (requires Apple dev login) where an Apple employee confirms that "The SKSPVC does not support this currently. It currently only supports showing an individual product."

非常讨厌,因为这曾经很好用,并且是公司向用户展示其他应用程序的好方法。回到绘图板!

Pretty annoying, since this used to work great and was a great way for a company to show users its other apps. Back to the drawing board!

更多推荐

SKStoreProductViewController显示开发人员的应用程序

本文发布于:2023-11-27 01:24:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1635993.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:开发人员   应用程序   SKStoreProductViewController

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!