在应用内邀请用户通过testFlight下载内测版本

直接上代码咯: 

NSURL *customAppURL = [NSURL URLWithString:@"itms-beta://"];
if ([[UIApplication sharedApplication] canOpenURL:customAppURL]) {
    // TestFlight is installed
    // Special link that includes the app's Apple ID
    customAppURL = [NSURL URLWithString:@"https://beta.itunes.apple.com/v1/app/123456789"]; 
    [[UIApplication sharedApplication] openURL:customAppURL];
}

跳转到TestFlight下载app: https://beta.itunes.apple.com/v1/invite/some_key

你可能感兴趣的:(iOS精华)