iOS App 跳转到 AppStore
来源:互联网 发布:json格式打开 编辑:程序博客网 时间:2024/05/01 22:26
iOS App 跳转到 AppStore
iOS设备上的App经常需要跳转到AppStore中进行升级或者是评价,这个过程其实很简单:给一个需要跳转的App对应的URL,然后调用跳转的方法openURL:不过这个URL地址老是忘记,还是记下了比较好。
直接跳转
其实这个问题很简单,首先拿到你要跳转到的AppStore地址(URL)例如:
https://itunes.apple.com/cn/app/jie-zou-da-shi/id493901993?mt=8
然后将 http:// 替换为 itms-apps://
然后调用以下代码
NSString *str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/cn/app/jie-zou-da-shi/id493901993?mt=8"]; NSURL * url = [NSURL URLWithString:str]; if ([[UIApplication sharedApplication] canOpenURL:url]) { [[UIApplication sharedApplication] openURL:url]; } else { NSLog(@"can not open"); }
跳转到评论区
代码如下:
//去评分 NSString *str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@",@"1006631751"]; NSURL * url = [NSURL URLWithString:str]; if ([[UIApplication sharedApplication] canOpenURL:url]) { [[UIApplication sharedApplication] openURL:url]; } else { NSLog(@"can not open"); }
0 0
- iOS App 跳转到 AppStore
- iOS App 跳转到 AppStore
- ios------app跳转到appStore评分
- ios最新app跳转到appStore评分
- iOS 跳转到appstore
- iOS APP提示升级直接跳转到AppStore
- app跳转到AppStore评分
- iOS 应用程序跳转到appstore
- iOS 应用程序跳转到appstore
- iOS 跳转到appstore评论
- iOS直接跳转到Appstore
- iOS——由app跳转到AppStore下载app或者调转到某一个网页
- IOS APP 上传到AppStore
- IOS APP 上传到AppStore
- IOS APP 上传到AppStore
- IOS APP 上传到AppStore
- IOS APP 上传到AppStore
- iOS发布APP到APPstore
- 设计模式 策略模式 以Android 中TextView绘制文本、颜色为背景说明
- Win10系统里找不到explorer.exe进程的原因
- (C#)WinForm窗体间传值
- java设计模式之——策略模式
- malloc与free函数的实现代码
- iOS App 跳转到 AppStore
- ADT如法自动生成R.java文件
- 文件上传和下载
- Java制作证书的工具keytool用法总结
- javascript规范
- Xcode插件安装无效
- linux 查看PHP版本
- 拼图小游戏"ST--拼图"开发篇之开始界面UI布局
- C语言指针转换为intptr_t类型