iOS 应用中直接跳转到 AppStore 的方法
来源:互联网 发布:音乐视频剪辑软件 编辑:程序博客网 时间:2024/05/18 02:52
找到应用程序的描述链接,比如:http://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8
然后将 http://
替换为 itms://
或者 itms-apps://:
itms://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8 itms-apps:// itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8
然后打开这个链接地址:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8"]];[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps ://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8"]];跳转到应用评价页NSString *urlStr = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@&pageNumber=0&sortOrdering=2&mt=8", APPID];[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlStr]];跳转到应用详情页NSString *urlStr = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%@", APPID];[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlStr]];
这个最好在真机上面测试,在模拟器上测试,会没有效果。
0 0
- 在 iOS 应用中直接跳转到 AppStore 的方法
- 在 iOS 应用中直接跳转到 AppStore 的方法
- 在 iOS 应用中直接跳转到 AppStore 的方法
- 在 iOS 应用中直接跳转到 AppStore 的方法
- 在 iOS 应用中直接跳转到 AppStore 的方法
- 在 iOS 应用中直接跳转到 AppStore 的方法
- 在 iOS 应用中直接跳转到 AppStore 的方法
- 在 iOS 应用中直接跳转到 AppStore 的方法
- 在 iOS 应用中直接跳转到 AppStore 的方法
- 在 iOS 应用中直接跳转到 AppStore 的方法
- iOS 应用中直接跳转到 AppStore 的方法
- 在 iOS 应用中直接跳转到 AppStore 的方法
- iOS开发---在 iOS 应用中直接跳转到 AppStore 的方法
- 在 iOS 应用中直接跳转到 AppStore
- iOS开发中,应用内直接跳转到Appstore
- iOS开发中,应用内直接跳转到Appstore
- iOS开发中,应用内直接跳转到Appstore
- iOS开发中,应用内直接跳转到Appstore评分
- 【JAVA笔记】JAVA后端实现统一扫码支付:微信篇_0
- 安卓手机运行WINDOWS
- 制作水果忍者-JS-3
- mysql中的增删改查
- 【Spring-web】AsyncRestTemplate源码学习
- iOS 应用中直接跳转到 AppStore 的方法
- mysql 的 占位符使用 以及一次执行多行sql语句
- aspiration
- 1061.Dating (20)
- 【zabbix】利用LLD自动发现功能监控多Tomcat实例
- 2016碎碎念,纪自己人生的又一个转折点
- 【Spring-web】AsyncRestTemplate源码学习_0
- kubernetes中port、target port、node port的对比分析,以及kube-proxy代理
- 九种排序算法总结与Java实现