NSString *qqNum = @"1234567";
NSString *qqStr=[NSString stringWithFormat:@"mqq://im/chat?chat_type=wpa&uin=%@&version=1&src_type=web",qqNum];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:qqStr]];
另:非好友聊天的话,用来接收临时消息的QQ号需开通 QQ推广功能 ,不然陌生人向他发送临时消息,直接失败。开通方式:打开QQ推广网址 [http://shang.qq.com](http://shang.qq.com/) 并用QQ登录
网友评论