申请加群
NSString *qq_number = QQ; NSString* urlStr = [NSString stringWithFormat:@"mqqapi://card/show_pslcard?src_type=internal&version=1&uin=%@&key=%@&card_type=group&source=external", qq_number, @"44a6e01f2dab126f87ecd2ec7b7e66ae259b30535fd0c2c25776271e8c0ac08f"]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlStr]];
私聊
NSString *qqNumber = QQ; NSString *openQQUrl = [NSString stringWithFormat:@"mqq://im/chat?chat_type=wpa&uin=%@&version=1&src_type=web",qqNumber]; NSURL *url = [NSURL URLWithString:openQQUrl];