跳转到QQ聊天

   UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectZero];

    NSURL *url = [NSURL URLWithString:@"mqq://im/chat?chat_type=wpa&uin=815040727&version=1&src_type=web"];//uin=123456为你要跳转的QQ号码

    NSURLRequest *request = [NSURLRequest requestWithURL:url];

    //    webView.delegate = self;

    [webView loadRequest:request];

    [self.view addSubview:webView];

转载于:https://www.cnblogs.com/xiezefeng/p/7636803.html

你可能感兴趣的:(跳转到QQ聊天)