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];
LWReachabilityManager is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'LWReachabilityManager'
Carthage
github "luowei/LWReachabilityManager"
luowei, luowei@wodedata.com
LWReachabilityManager is available under the MIT license. See the LICENSE file for more info.