跳转TestFlight

2020-08-31  本文已影响0人  汴城码农
-(void)awakeTestFlight{
    NSString *urlString = @"beta.itunes.apple.com/v1/invite/fb434eea632c45cc8592444f62c5c858784fa54807704b66baf9852ed21ff7bd4a45a752?ct=929467FPP6&advp=10000&platform=ios";
    
    if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"itms-beta://"]]) {
        urlString = [NSString stringWithFormat:@"itms-beta://%@",urlString];
        NSURL *url = [NSURL URLWithString:urlString];
        [[UIApplication sharedApplication] openURL:url];
    }else{
        urlString = [NSString stringWithFormat:@"https://%@",urlString];
        NSURL*url = [NSURL URLWithString:urlString];
        [[UIApplication sharedApplication] openURL:url];
    }
}
上一篇 下一篇

猜你喜欢

热点阅读