iOS 跳转到App store 评分 页面

更改自己的id

//https://itunes.apple.com/us/app/wo-zheng-ting-ju-ting-mei/id1146314461?l=zh&ls=1&mt=8
        NSString *str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@",@"1146314461"];
        NSURL * url = [NSURL URLWithString:str];
        
        if ([[UIApplication sharedApplication] canOpenURL:url])
        {
            [[UIApplication sharedApplication] openURL:url];
        }
        else
        {
            NSLog(@"can not open");
        }

你可能感兴趣的:(iOS 跳转到App store 评分 页面)