iOS 跳转到appstore评论

NSString * appstoreUrlString = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?mt=8&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software&id=APP_ID"; 
     
    NSURL * url = [NSURL URLWithString:appstoreUrlString]; 
     
    if ([[UIApplication sharedApplication] canOpenURL:url]) 
    { 
        [[UIApplication sharedApplication] openURL:url]; 
    } 
    else 
    { 
        NSLog(@"can not open"); 

    } 

第二种方法

NSString* strLoc = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=536226604";

        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:strLoc]];

注意:id换成自己应用的id

你可能感兴趣的:(ios,APP,ios开发,appstore)