Skip to content

Instantly share code, notes, and snippets.

@quellish
Created November 15, 2014 19:25
Show Gist options
  • Select an option

  • Save quellish/29eec9f8ecddf270b3c7 to your computer and use it in GitHub Desktop.

Select an option

Save quellish/29eec9f8ecddf270b3c7 to your computer and use it in GitHub Desktop.
host:didBecomeReachable:
- (void) host:(NSString *)__unused host didBecomeReachable:(BOOL)reachable {
__strong UIButton *button = [self connectButton];
// Enable the button when we are notified the host became reachable
[button setEnabled:reachable];
if (reachable){
[self endObservingReachabilityStatusForHost:nil];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment