Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [self setReachability:[Reachability reachabilityWithHostName:@"http://www.google.com"]];
- [[self reachability] setReachableOnWWAN: NO];
- [[self reachability] setReachableBlock:^(Reachability * reach) {
- NSLog(@"El dispositivo cuenta con conexión a internet!");
- }];
- [[self reachability] setUnreachableBlock:^(Reachability * reach) {
- NSLog(@"No hay conexión a internet en estos momentos!");
- }];
- [[self reachability] startNotifier];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement