直到前几天,以下URL处理程序重定向用户才能使应用程序工作:
static NSString * const kAppStoreGiftURL = @"itms-appss://buy.itunes.apple.com/" "WebObjects/MZFinance.woa/wa/giftSongsWizard" "?gift=1&salableAdamId=%u&productType=C&pricingParameter=STDQ&mt=8&ign-mscache=1"; NSString *url = [NSString stringWithFormat:kAppStoreGiftURL,kAppID]; NSLog(@"Opening store with URL: %@",url); [[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
然而,现在看来,在openURL之后会产生以下错误消息:
通过商店直接赠送应用程序仍然可用.
苹果是否完全禁用此功能,还是有一个可以减轻此问题的新网址?
解决方法
旧的礼物网址没有文件,苹果现在已经停止支持.我注意到,在2013年12月的某个时候,它停止了工作.据我所知,如果再次可能,苹果公司没有发表任何公开评论.
我已经诉诸使用警报视图来指示用户如何赠送礼物.除非苹果带回这个功能,否则还没有太多的其他功能.
// Gift app UIAlertView *giftAlertView = [[UIAlertView alloc] initWithTitle:@"Gift this App" message:@"Give a copy of this app as a gift?\n\nTap Share > Gift\non the App Store page" delegate:self cancelButtonTitle:@"I'll think about it" otherButtonTitles:@"OK",nil]; [giftAlertView show];
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。