基于Reachability封装的网络判断:FGGReachability

jopen 9年前
基于Reachability封装的网络判断,很好用,可以判断2G,2.75G,3G,4G,Wi-Fi,及可用,不可用等状态。
//  //  FGGReachability_DemoTests.m  //  FGGReachability_DemoTests  //  //  Created by 夏桂峰 on 15/8/10.  //  Copyright (c) 2015年 夏桂峰. All rights reserved.  //    #import <UIKit/UIKit.h>  #import <XCTest/XCTest.h>    @interface FGGReachability_DemoTests : XCTestCase    @end    @implementation FGGReachability_DemoTests    - (void)setUp {      [super setUp];      // Put setup code here. This method is called before the invocation of each test method in the class.  }    - (void)tearDown {      // Put teardown code here. This method is called after the invocation of each test method in the class.      [super tearDown];  }    - (void)testExample {      // This is an example of a functional test case.      XCTAssert(YES, @"Pass");  }    - (void)testPerformanceExample {      // This is an example of a performance test case.      [self measureBlock:^{          // Put the code you want to measure the time of here.      }];  }    @end

项目主页:http://www.open-open.com/lib/view/home/1439300150176