赞
踩
找到应用程序的描述链接,比如:https://itunes.apple.com/cn/app/point/id942823855
然后将 http:// 替换为 itms:// 或者 itms-apps://:
itms://itunes.apple.com/cn/app/point/id942823855
itms-apps:// itunes.apple.com/cn/app/point/id942823855
然后打开这个链接地址:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.apple.com/cn/app/point/id942823855"]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps ://itunes.apple.com/cn/app/point/id942823855"]];
这个最好在真机上面测试,在模拟器上测试,会没有效果。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。