|
你好,请问这段代码是写在哪里的?
以下为具体代码:
Android:
String url="mqqwpa://im/chat?chat_type=wpa&uin=123456";startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
iOS:
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectZero];NSURL *url = [NSURL URLWithString"mqq://im/chat?chat_type=wpa&uin=123456&version=1&src_type=web"];NSURLRequest *request = [NSURLRequest requestWithURL:url];webView.delegate = self;[webView loadRequest:request];[self.view addSubview:webView]; |
|