/LWReachabilityManager

LWReachabilityManager,ReachabilityManager山寨版.

Primary LanguageObjective-CMIT LicenseMIT

LWReachabilityManager

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

//monitor network status
__weak typeof(self) weakSelf = self;
[[LWNetworkReachabilityManager sharedManager] setReachabilityStatusChangeBlock:^(LWNetworkReachabilityStatus status) {
    weakSelf.networkReachabilityStatus = status;
}];
[[LWNetworkReachabilityManager sharedManager] startMonitoring];


BOOL isReachable = [[LWNetworkReachabilityManager sharedManager] isReachable];

Requirements

Installation

LWReachabilityManager is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'LWReachabilityManager'

Carthage

github "luowei/LWReachabilityManager"

Author

luowei, luowei@wodedata.com

License

LWReachabilityManager is available under the MIT license. See the LICENSE file for more info.