iOS---检测网络状态
来源:互联网 发布:东华软件股票怎么样 编辑:程序博客网 时间:2024/05/16 14:46
将Reachability.h 和 Reachability.m 加到自己的项目中,并引用 SystemConfiguration.framework,就可以使用了。
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{if (([Reachability reachabilityForInternetConnection].currentReachabilityStatus==NotReachable)||([Reachability reachabilityForLocalWiFi].currentReachabilityStatus==NotReachable)) { UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"警告" message:@"您的设备暂时没有可用的网络!" delegate:self cancelButtonTitle:@"确定" otherButtonTitles: nil]; [alert show]; [alert release]; } }
- iOS---检测网络状态
- ios 检测网络状态
- 检测iOS网络状态
- iOS检测网络状态
- iOS检测网络状态
- iOS 检测网络状态
- IOS检测网络连接状态
- IOS检测网络连接状态
- IOS检测网络连接状态
- IOS检测网络连接状态
- IOS检测网络连接状态
- IOS检测网络连接状态
- IOS检测网络连接状态
- IOS检测网络连接状态
- ios检测网络状态Reachability
- iOS检测网络连接状态
- iOS 实时检测网络状态
- iOS开发-检测网络状态
- Drop-in replacement for UINavigationController with custom transition animations
- IAP-应用内购买(部分)
- 函数指针
- CVPR13 Rolling Riemannian Manifolds to Solve the Multi-class Classification Problem
- 寻找最小的K个数
- iOS---检测网络状态
- ContentProvider和Uri详解
- NET的json转换病在页面显示生成曲线图,使用dhtmlxChart(一) 单条曲线
- Windows Azure功能更新:虚拟机服务改进、SQL数据库定期备份、SQL独享服务
- android避免内存泄露
- win32 sdk�µ���webbrowser�ؼ�
- NIF文件导入到场景(VS2008)
- POJ 2528 Mayor's posters 线段树+离散化
- chrome安装主题或插件时提示“无法创建解压缩目录”的解决方法