给appstore评分和进入app安装页面代码



    // 评分 
    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]];

你可能感兴趣的:(给appstore评分和进入app安装页面代码)