Get the group package at qun.qq.com/join.html

Then get the code from it:

  • (BOOL)joinGroup:(NSString *)groupUin key:(NSString *)key

{ NSString *urlStr = [NSStringstringWithFormat:@”mqqapi://card/show_pslcard?src_type=internal&version=1&uin=%@&key=%@&card_type=group&source= external”,@”48423578396″,@”959d333984b2deb937df28c4af43e3df678f8ec616a43e91c828e7ee563c4163″]; NSURL *url = [NSURLURLWithString:urlStr]; if([[UIApplicationsharedApplication] canOpenURL:url]){ [[UIApplicationsharedApplication] openURL:url]; returnYES; } elsereturn NO; }

Change to #pragma mark – add group because click event trigger is required

-(void)qqButtonAction:(UIButton *)button { NSString *urlStr = [NSStringstringWithFormat:@”mqqapi://card/show_pslcard?src_type=internal&version=1&uin=%@&key=%@&card_type=group&source= external”,@”484558396″,@”959d333984b2deb937df28c4af43e3df678f8ec616a43e91c828e7ee563c4163″]; NSURL *url = [NSURLURLWithString:urlStr]; if([[UIApplicationsharedApplication] canOpenURL:url]){

    [[UIApplicationsharedApplication] openURL:url];
    
}
Copy the code

}

Citation: Original address