问题描述
我正在使用 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:
这只发生在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中的一个错误。请参阅(需要Apple dev登录),Apple员工确认SKSPVC目前不支持此版本。目前仅支持展示单个产品。
This is a bug in iOS 7. See https://devforums.apple.com/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显示开发人员的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!