https://github.com/sger/sgreachabilitycontroller
https://github.com/sger/sgreachabilitycontroller
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sger/sgreachabilitycontroller
- Owner: sger
- Created: 2014-04-25T18:23:09.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-25T19:06:46.000Z (about 12 years ago)
- Last Synced: 2025-02-24T02:52:26.757Z (over 1 year ago)
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reachability Helper
## Requirements
[https://github.com/tonymillion/Reachability](https://github.com/tonymillion/Reachability)
//Initialize
[TLIReachabilityController sharedController];
//NSNotification example
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reachabilityDidChange:) name:kReachabilityChangedNotification object:nil];
- (void)reachabilityDidChange:(NSNotification *)notification {
Reachability *reachability = (Reachability *)[notification object];
if ([reachability isReachable]) {
NSLog("Reachable");
} else {
NSLog(@"Not reachable");
}
}