BOOL weicaht = [[UIApplicationsharedApplication]canOpenURL:[NSURLURLWithString:@"mqqapi://"]]; BOOL qq = [[UIApplicationsharedApplication]canOpenURL:[NSURLURLWithString:@"weixin://"]];