跳转 App Store 评分 IOS7及其他系统版本

时间:2014-08-14 01:05:37   收藏:0   阅读:428
//iOS7和其他系统版本跳转链接不一样

- (void)clickUrl:(id)sender

{

    UIButton *bt = (UIButton *)sender;

    

    NSString *str = @"";

    

    if( ([[[UIDevice currentDevice] systemVersion] doubleValue]>=7.0))

    {

        str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%d",bt.tag];

        

    }else

    {

        str = [NSString stringWithFormat:

                         @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d",

                         bt.tag ];

    }


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

}

 

跳转 App Store 评分 IOS7及其他系统版本,布布扣,bubuko.com

原文:http://www.cnblogs.com/iflewless/p/3911277.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!