标签:
小功能之去AppStore评分
#pragma mark - 去AppStore评分 -(void)goToAppStore { NSString *str = [NSString stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d",983542040]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]]; //983542040为应用的AppID 不同应用替换即可 }
经测试发现以上方法无法加载App应用页,使用以下代码正常
-(void)goToAppStore { NSString *str = [NSString stringWithFormat: @"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=%d&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8",983542040]; //983542040为应用的AppID 不同应用替换即可 }
标签:
原文地址:http://www.cnblogs.com/sixindev/p/4534317.html