开发iOS一年多了,发现很多知识需要总结,就比如iOS中我们需要用到的一些第三方类库,可以说iOS开发里面有太多的第三方类库,但我们经常用到的也就那几个,在这里我简单的做了以下总结,供大家相互学习Reachability 检测网络连接用来检查网络连接是否可用:包括WIFI和WWAN(3G/EDGE/...
分类:
移动开发 时间:
2015-06-08 12:58:35
阅读次数:
143
网络监测 1 enum ReachabilityType { 2 case WWAN, 3 WiFi, 4 NotConnected 5 } 6 7 public class Reachability { 8 9 /**10 :see: Origi...
分类:
移动开发 时间:
2015-06-07 23:09:33
阅读次数:
215
NetWorkingHTTP使用方法:
1、在需要用到的头文件中引入NetWorkingHTTP和Reachability
2、使用需要的方法:post或者是get方法
3、具体使用方法如下
/**get获取json字符串*/
-(void)buttonClick{
NSString *url = @"http://api.k780.com:88/?app=weathe...
分类:
移动开发 时间:
2015-06-04 12:00:26
阅读次数:
178
网络状态监测之 Reachability的使用...
分类:
其他好文 时间:
2015-06-02 22:07:43
阅读次数:
147
1.AFNetworking地址:https://github.com/AFNetworking/AFNetworking用于网络请求2.JSONKit地址:https://github.com/johnezang/JSONKit解析JSON3.Reachability地址:https://gith...
分类:
移动开发 时间:
2015-06-01 16:09:54
阅读次数:
149
在appdelegate里面添加观察者,并启动监测 // 使用通知中心监听kReachabilityChangedNotification通知 [[NSNotificationCenter defaultCenter] addObserver:self ...
分类:
其他好文 时间:
2015-05-29 17:48:52
阅读次数:
148
1、AFNetworking
AFNetworking 采用 NSURLConnection + NSOperation, 主要方便与服务端 API 进行数据交换, 操作简单, 功能强大, 现在许多人都用它取代 ASIHTTPRequest
2、Apple Reachability
网络监测,可以参考下这篇文章iOS网络监测如何区分2、3、4G?
3、DOU...
分类:
移动开发 时间:
2015-05-25 09:58:31
阅读次数:
393
由于近段时间工作太忙,博客都有一段时间没有进行更新了,现在就来浅谈一下网络的判断,如有错误请各位大神能够指出来共同学习一下,谢谢!下面就进入正题了:
1.添加源文件(两个)下载地址:http://code4app.com/ios/Reachability/509743dc6803fae669000000
2.导入框架[SystemConfiguration.framework]
3....
分类:
移动开发 时间:
2015-05-24 15:48:54
阅读次数:
143
1.AFNetworking地址:https://github.com/AFNetworking/AFNetworking用于网络请求2.JSONKit地址:https://github.com/johnezang/JSONKit解析JSON3.Reachability地址:https://gith...
分类:
其他好文 时间:
2015-05-16 13:12:01
阅读次数:
112
#pragma mark - Reachability Management (iOS 6-7)//网络监听(用于检测网络是否可以链接。此方法最好放于AppDelegate中,可以使程序打开便开始检测网络)- (void)reachabilityManager{ //打开网络监听 [manage.....
分类:
Web程序 时间:
2015-05-15 10:22:37
阅读次数:
886