小功能之去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 不同应用替换即可
}

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-09-08
  • 2022-12-23
相关资源
相似解决方案