基于Reachability封裝的網絡判斷:FGGReachability
基于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
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!