NSString *qq=[NSString stringWithFormat:@"mqq://im/chat?chat_type=wpa&uin=%@&version=1&src_type=web",@""];
NSURL *url2 = [NSURL URLWithString:qq];
if ([[UIApplication sharedApplication] canOpenURL:url2]) {
[[UIApplication sharedApplication] openURL:url2];
}else{
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"提示" message:@"对不起,您还没安装QQ" preferredStyle:UIAlertControllerStyleAlert]; UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {
return ;
}];
[alertController addAction:cancelAction];
[self presentViewController:alertController animated:YES completion:nil];
}

最新文章

  1. 25个有用的和方便的 WordPress 速查手册
  2. vim中大小写转换
  3. 有关使用seajs和template模板的总结
  4. Git哲学与使用
  5. poppin_xpower_ 常城
  6. A+B Problem 详细解答 (转载)
  7. 记录一下:chrome上,把网页保存为文件的插件
  8. CUBRID学习笔记 24 数据类型1
  9. [my]_ubuntu12.10_/etc/apt/sources.list
  10. ios球体弹跳游戏源码
  11. 使用 PHP 验证表单数据
  12. umount 卸载的时候,提示busy!
  13. nyoj 95 众数问题【水】
  14. (转载)偏序集的Dilworth定理学习
  15. sublime工具篇
  16. 更加清楚理解mvc结构
  17. github感悟
  18. Bootstrap3 表格-基本表格
  19. oracle 一些常用的sql优化规则
  20. FreeNAS插件打造ownCloud私有云网盘

热门文章

  1. Apache http server和tomcat的区别
  2. 【LeetCode】Rotate List
  3. NOIP2015_提高组Day2_3_运输计划
  4. zabbix 用户自定义监控参数添加
  5. Protobuf入门实例
  6. ubuntu下安装cpython 0.2x
  7. python3 安装 opencv3 (win10,64bit)
  8. vue 里面输出带标签的html
  9. JAVA THINGKING (一)
  10. Day01:Python入门