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

来源:互联网 发布:ubuntu的dash 编辑:程序博客网 时间:2024/05/16 04:51



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

原创粉丝点击