QQ群 官网链接
http://qun.qq.com/join.html
一、代码
- (IBAction)addQQFlock:(UIButton *)sender {
// 添加qq群
[self joinGroup:@"533828939" key:@"846a39e8a2aef1e3f25c71f3df11e34117f012a0c31a8bd09b7cc3fca126f1fb"];
}
- (BOOL)joinGroup:(NSString *)groupUin key:(NSString *)key{
NSString *urlStr = [NSString stringWithFormat:@"mqqapi://card/show_pslcard?src_type=internal&version=1&uin=%@&key=%@&card_type=group&source=external", @"533828939",@"846a39e8a2aef1e3f25c71f3df11e34117f012a0c31a8bd09b7cc3fca126f1fb"];
NSURL *url = [NSURL URLWithString:urlStr];
if([[UIApplication sharedApplication] canOpenURL:url]){
[[UIApplication sharedApplication] openURL:url];
r