iOS程序内进入 App Store 打分的代码

-(void)gotoGrade{
    NSString *str = [NSString stringWithFormat:
                     @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d", 289382458];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
}

 

 

     很多用户用了好软件后忘记或嫌麻烦而不去 App Store 进行打分评星,为此开发者可以在应用中加入打分按钮,点击后直接跳转到 App Store 的评分界面。

猜你喜欢

转载自duchengjiu.iteye.com/blog/1917608