程序点击跳转Applestore 评论页面
2015-11-12 15:39
211 查看
NSString *str = [NSString stringWithFormat:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=这里是你的appID" ];
if( ([[[UIDevice currentDevice] systemVersion] doubleValue]>=7.0)){
str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id这里是你的appID"];
}
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
写到button的点击事件里就可以 记得改appID 模拟器没作用 要用真机测试
if( ([[[UIDevice currentDevice] systemVersion] doubleValue]>=7.0)){
str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id这里是你的appID"];
}
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
写到button的点击事件里就可以 记得改appID 模拟器没作用 要用真机测试
相关文章推荐
- Android访问WebService的两种方法
- iOS 二维码扫描 通过ZBar ZXing等第三方库
- Unity 朝向某个游戏对象 LookAt
- Activity被系统销毁时,返回后的生命周期
- unity脚本自带函数执行顺序
- swift中UIButton的简单使用
- Android Matrix
- IOS 解析XML文档
- Android视图绘制流程完全解析,深入了解View(二)
- Quick-Cocos2d-x初学者游戏教程(四)
- android中获取手机分辨率 device screen dimensions
- Swift设计模式——Factory Pattern
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
- Android Studio如何删除module
- 文章标题
- call()和apply()
- 腾讯优测自动化测试场景丨iBeacon走进微信“豪门”
- Xcode免证书打包ipa
- android 4.4删除短信
- The Swift Pods being used are: Box, ReactiveCocoa, and Result