TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Aug 2016 |
Maintained by Umair Hassan Baig.
UHBConnectivity manager is an block oriented objective-c wrapper on Reachability. You can observe network changes by blocks.
You can register any object with a Unique Identifier
[[UHBConnectivityManager shared] registerCallBack:^(ConnectivityManagerConnectionStatus status) {
if (status == ConnectivityManagerConnectionStatusConnected) {
// Device connected to internet: You may update your data here
}
else
{
// Show alert
}
} forIdentifier:self.memoryAddress];
You may unregister the callback in Dealloc method or anywhere you want.
[[UHBConnectivityManager shared] removeCallBackForIdentitfier:self.memoryAddress];
iOS Version 7.0 or greater
UHBConnectivityManager is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "UHBConnectivityManager"
Umair Hassan Baig, [email protected]
UHBConnectivityManager is available under the MIT license. See the LICENSE file for more info.