IOS跳转去appStore评分

来源:互联网 发布:nginx 域名解析 编辑:程序博客网 时间:2024/05/02 04:22
  • (void)gotoAppStore{

    NSString *str = [NSString stringWithFormat:@”itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@”, kAppId];
    if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:str]]) {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
    }
    else
    {
    // [AppCommon showMessage:@”暂时不支持页面跳转!”];
    DLog(@”bu zhichi “);
    }

}

2 0
原创粉丝点击