ios跳转appstore中应用升级和评价

来源:互联网 发布:linux 切换主机 编辑:程序博客网 时间:2024/05/16 17:59

笔记:

// 评分

    NSString *str = [NSString stringWithFormat:
                     @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@",
                     @"346703830"]; 
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
   
    //软件首页
    NSString *str2 = [NSString stringWithFormat:
                     @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=%@",
                     @"346703830"]; 
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str2]];