Skip to content

sger/SGReachabilityController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Reachability Helper

Requirements

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");
        }
  }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published