iOS开发

跳转AppStore评论

2016-03-01  本文已影响67人  雪中客

直接代码

if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) {
        NSString *str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/idxxxxxxx"];
        
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];

    }else{
        NSString *str = [NSString stringWithFormat:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=xxxxxxx" ];
        
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
    }
上一篇下一篇

猜你喜欢

热点阅读