iOS跳转App Store应用评论页
2016-10-15 00:00
281 查看
static NSString *templateReviewURL = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=YourAppID";
static NSString *templateReviewURLiOS7 = @"itms-apps://itunes.apple.com/app/idYourAppID";
static NSString *templateReviewURLiOS8 = @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=YourAppID&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software";
NSString * appID = @"YourAppID";
NSString *reviewURL = [templateReviewURL stringByReplacingOccurrencesOfString:@"appID" withString:[NSString stringWithFormat:@"%@", appID]];
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0 && [[[UIDevice currentDevice] systemVersion] floatValue] < 7.1) {
reviewURL = [templateReviewURLiOS7 stringByReplacingOccurrencesOfString:@"appID" withString:[NSString stringWithFormat:@"%@", appID]];
}
else if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) {
reviewURL = [templateReviewURLiOS8 stringByReplacingOccurrencesOfString:@"appID" withString:[NSString stringWithFormat:@"%@", appID]];
}
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:reviewURL]]) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];
}
static NSString *templateReviewURLiOS7 = @"itms-apps://itunes.apple.com/app/idYourAppID";
static NSString *templateReviewURLiOS8 = @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=YourAppID&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software";
NSString * appID = @"YourAppID";
NSString *reviewURL = [templateReviewURL stringByReplacingOccurrencesOfString:@"appID" withString:[NSString stringWithFormat:@"%@", appID]];
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0 && [[[UIDevice currentDevice] systemVersion] floatValue] < 7.1) {
reviewURL = [templateReviewURLiOS7 stringByReplacingOccurrencesOfString:@"appID" withString:[NSString stringWithFormat:@"%@", appID]];
}
else if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) {
reviewURL = [templateReviewURLiOS8 stringByReplacingOccurrencesOfString:@"appID" withString:[NSString stringWithFormat:@"%@", appID]];
}
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:reviewURL]]) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];
}
相关文章推荐
- ios 应用 跳转App Store 评论 评分
- ios点击链接直接跳转到 App Store 指定应用下载页面
- 苹果App Store开发者帐户从申请,验证,到发布应用(2) 分类: ios相关 app相关 2015-04-03 11:57 167人阅读 评论(0) 收藏
- iOS开发中 应用内直接跳转到APP Store
- iOS应用跳转到app store应用评分页面
- iOS应用跳转至app store 评分页(包括iOS7前后两种)
- iOS应用跳转至app store 评分页(包括iOS7前后两种)
- IOS 应用中跳转到APP Store的评分页面
- iOS应用跳转至app store 评分页(包括旧版本和新版本)
- iOS应用内更新或评论、跳转AppStore评论更新
- iOS开发笔记之五十一——跳转到app store应用下载评分
- 直接跳转到app store指定应用页面或评论页面
- 在iOS 应用中跳转到app store
- 苹果App Store开发者帐户从申请,验证,到发布应用(4) 分类: ios相关 app相关 2015-04-03 12:07 160人阅读 评论(0) 收藏
- iOS 跳转到App Store下载或评论(内评论)
- 直接跳转到app store指定应用页面或评论页面
- 苹果App Store开发者帐户从申请,验证,到发布应用(1) 分类: ios相关 app相关 2015-04-03 11:57 209人阅读 评论(0) 收藏
- iOS跳转到应用评论页面
- iOS点击链接跳转到App Store上的应用内
- iOS应用跳转至app store 评分页(包括iOS7前后两种)