跳转到 testflight 提供升级
-(void)jumpTestFlight{
NSString *urlString = @"beta.itunes.apple.com/v1/app/1554974726";
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];
}
}
网友评论