您的位置:首页 > 移动开发 > IOS开发

iOS在线QQ咨询

2016-05-24 14:21 344 查看
/**
*  @author 黄健, 2016-05-20 17:05:58
*
*  @brief 在线QQ咨询
*/
- (void)chatByQQAction
{
NSString *QQ        = @"1285245402"; // QQ号
NSString *openQQURL = [NSString stringWithFormat:@"mqq://im/chat?chat_type=wpa&uin=%@&version=1&src_type=web", QQ];

UIWebView *webView    = [[UIWebView alloc] initWithFrame:CGRectZero];
NSURL *url            = [NSURL URLWithString:openQQURL];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webView loadRequest:request];
[self.view addSubview:webView];
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: