Skip to content

Instantly share code, notes, and snippets.

@gliubc gliubc/.m
Created Jul 11, 2019

What would you like to do?
- (void)chatWithQQ:(NSString *)qq {
if (!qq.length) {
[SVProgressHUD showInfoWithStatus:@"QQ号码不存在"];
if (![[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"mqq://"]]) {
[SVProgressHUD showInfoWithStatus:@"您尚未安装QQ应用"];
NSString *url = [NSString stringWithFormat:@"mqq://im/chat?chat_type=wpa&uin=%@&version=1&src_type=web", qq];
[self openScheme:url];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.