Created
November 15, 2014 19:25
-
-
Save quellish/29eec9f8ecddf270b3c7 to your computer and use it in GitHub Desktop.
host:didBecomeReachable:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (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