APP如何跳转到AppStore进行评价?

你登陆itunes connect,并且创建个APP就能得到个appid,不需要说上架才能看到,你只要创建了就能看到这个appid,然后itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=等号后面就是写你的appid,这样就是评价地址了

    NSString *appstoreUrlString = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@", appid];
    NSURL * url = [NSURL URLWithString:appstoreUrlString];

    if ([[UIApplication sharedApplication] canOpenURL:url]) {
        [[UIApplication sharedApplication] openURL:url];
    }else {
        NSLog(@"can not open");
    }

你可能感兴趣的:(iOS)